charts

Free easy way to draw graphs and charts in C++? [closed]

馋奶兔 提交于 2019-12-17 17:33:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am doing a little exploring simulation and I want to show the graphs to compare the performance among the algorithms during run-time. What library comes to your mind? I highly prefer those that come small as I'd love if it's easy for my instructor to compile my code. I've checked gdchart but it seems to be too

How do I format Google Chart data to show a count of items, but be filterable by year

狂风中的少年 提交于 2019-12-17 17:15:25
问题 Hopefully this is appropriate for stackexchange. If not, my apologies. Anyway, I have a set of data that is essentially a list of projects, the person tied to each project, and a year in which the project was started. What I'd like to do is render a bar chart that shows a total count of projects per individual, but somehow maintain the year in which an individual project was started so I can create a slider filter. That sounds confusing, writing it out. The data looks like this: [ ['Project',

Annotation Google Chart API

跟風遠走 提交于 2019-12-17 17:15:25
问题 i'm trying to use Google Chart API for building an Waterfall chart. I noticed that Candlestick/Waterfall charts are not supporting the annotations. See this jsfiddle sample google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('string', 'Category'); data.addColumn('number', 'MinimumLevel'); data.addColumn('number', 'MinimumLevel1'); data.addColumn('number',

Shading Area Between Two Vertical Lines

独自空忆成欢 提交于 2019-12-17 16:53:08
问题 Using Google Charts API, I have made a line chart. Is there any way to be able to shade between two vertical lines? I know I most likely have to use a combo chart, but can anyone make a simple jsfiddle of an Area Chart that shades the middle of two vertical lines? Thank you! 回答1: following is a snippet that draws a bell curve based on the input range. vertical lines are drawn to identify the Mean and Standard Deviation ranges. shading is added to highlight the areas within 1, 2, & 3 Standard

How to update d3.js bar chart with new data

喜夏-厌秋 提交于 2019-12-17 16:27:51
问题 I’ve started with the “Let’s make a bar chart I” example here: http://bost.ocks.org/mike/bar/ And I’m having a hard time figuring out how to make the very simple bar chart made with HTML5 elements update with new data. Here is my code: <!DOCTYPE html> <html> <head> <style> #work_queues_chart div { font-size: 0.5em; font-family: sans-serif; color: white; background-color: steelblue; text-align: right; padding: 0.5em; margin: 0.2em; } </style> <script src="http://d3js.org/d3.v3.min.js" charset=

Matplotlib: avoiding overlapping datapoints in a “scatter/dot/beeswarm” plot

混江龙づ霸主 提交于 2019-12-17 15:39:50
问题 When drawing a dot plot using matplotlib, I would like to offset overlapping datapoints to keep them all visible. For examples, if I have CategoryA: 0,0,3,0,5 CategoryB: 5,10,5,5,10 I want each of the CategoryA "0" datapoints to be set side by side, rather than right on top of each other, while still remaining distinct from CategoryB . In R ( ggplot2 ) there is a "jitter" option that does this. Is there a similar option in matplotlib, or is there another approach that would lead to a similar

Create Chart from Array data and not range

房东的猫 提交于 2019-12-17 10:48:44
问题 is it possible to create a Chart (e.g. Double Y-Axis Line Chart) not from Ranges, but from Array data? If so, how? 回答1: Yes. You can assign arrays to the XValues and Values properties of a Series object on a chart. Example: Dim c As Chart Dim s As Series Dim myData As Variant Set c = ActiveChart ' Assumes a chart is currently active in Excel... Set s = c.SeriesCollection(1) myData = Array(9, 6, 7, 1) ' or whatever s.Values = myData 回答2: You can assign arrays to chart series in Excel 2007

Highstock highcharts irregular data gets wrong x-scale

有些话、适合烂在心里 提交于 2019-12-17 10:47:22
问题 I have irregular data. Chart draws well when I use highcharts : $(function() { var chart = new Highcharts.Chart({ chart: { renderTo: 'chart' }, xAxis: { type: 'datetime' }, series: [{ name: 'Volume', data: chart_arr, }] }); }); http://jsfiddle.net/KnTaw/9/ But I have a lot of data so I need to zoom on the date and choose highstock . Then a strange thing happens: the x-axis become non-linear. $(function() { var chart2 = new Highcharts.StockChart({ chart: { renderTo: 'chart2' }, rangeSelector:

Proper way to remove all series data from a highcharts chart?

♀尐吖头ヾ 提交于 2019-12-17 10:32:34
问题 UPDATE: Here's a jsfiddle that shows the problem: http://jsfiddle.net/pynju/1/ Click on the blue column on Monday. When the detail-view loads, notice that 01-07 have 3 columns (expected 2). Click on the tallest bar to go back to the original view. Notice that the labels on the xAxis aren't being removed. =============== I have a bar chart that has 2 series, displayed as pairs of bars, side by side. series: [{ showInLegend: false, data: dowChartData },{ showInLegend: false, data:

Can Google Charts support dual y-axis (v-axis)?

风格不统一 提交于 2019-12-17 10:21:10
问题 The Flot chart api supports dual v-axis scales, as shown by this example. I'm using Google Charts - is this possible also with Google? I've had a look through the examples and docs, but can't find any examples / references to indicate it does support dual axis charts. 回答1: It took me a while, to figure this out, but Google Charts does support dual Y-axis (v-axis). I want to use the Javascript API and not the HTML interface. This example can be tested here: http://code.google.com/apis/ajax