charts

c3 step chart align on event

落爺英雄遲暮 提交于 2020-01-07 07:41:19
问题 I have a c3/d3 step chart with some boolean values. Now I need to align the step change on the actual event timestamp and not in the middle of that event. Is there any config option so c3 step chart changes the line from 0 to 1 exactly when the event occurs? 回答1: It seems that you're talking about line.step.type option: var chart = c3.generate({ data: { columns: [ ['data1', 300, 350, 300, 0, 0, 100] ], types: { data1: 'step' } }, // that's it: line: { step: { type: 'step-after' } } }); 来源:

c3 step chart align on event

拜拜、爱过 提交于 2020-01-07 07:41:17
问题 I have a c3/d3 step chart with some boolean values. Now I need to align the step change on the actual event timestamp and not in the middle of that event. Is there any config option so c3 step chart changes the line from 0 to 1 exactly when the event occurs? 回答1: It seems that you're talking about line.step.type option: var chart = c3.generate({ data: { columns: [ ['data1', 300, 350, 300, 0, 0, 100] ], types: { data1: 'step' } }, // that's it: line: { step: { type: 'step-after' } } }); 来源:

Highcharts :the code works in Fiddle but not i Visual Studio

不问归期 提交于 2020-01-07 06:27:30
问题 I am very new to VS and Highcharts. So I need your help! I get the error below when I run my code in VS: Uncaught TypeError: Object [object Object] has no method 'highcharts' Hse:95 (anonymous function) It is working fine in Fiddle! Does anyone has any idea how to fix this? <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="@Url.Content("/Scripts/ext/sparkline.js")"></script> <script type="text/javascript" src="@Url.Content("

Display of Stacked Column Chart (amcharts library)

泄露秘密 提交于 2020-01-07 05:09:11
问题 Problem is that columns appear to be located one behind the other, instead of one on top of the other Please have a look at http://jsfiddle.net/LLWft/2/ var chart1=new AmCharts.AmSerialChart(); chart1.theme="light"; chart1.colors=["#00a0db", "#428bca"]; var legend = new AmCharts.AmLegend(); legend.horizontalGap=10; legend.maxColumns=1; legend.position="right"; legend.useGraphSettings=true; legend.markerSize=10; chart1.addLegend(legend); chart1.dataProvider=chartData; chart1.valueAxes

How to dynamically update HistogramDataset with two series in jfreechart?

我们两清 提交于 2020-01-07 03:49:46
问题 I want to dynamically update two separate series in a jfree chart histogram. When i look at HistogramDataset it doesn't seem like there is a method for that. Is this possible? I know it can be done in SimpleHistogramDataset but I need to have two series on this chart. 回答1: Some alternatives: Replace the HistogramDataset with each update: chart.getXYPlot().setDataset(newDataset); Add a second SimpleHistogramDataset and XYItemRenderer to the plot: SimpleHistogramDataset newDataset =

Google chart ChartWrapper getting invalid column index

℡╲_俬逩灬. 提交于 2020-01-07 02:30:40
问题 I've followed the google chart tutorial to make a ControlWrapper drive two charts, I've prepared a dataset with 4 columns: data = new google.visualization.DataTable(); data.addColumn('datetime', 'Time'); data.addColumn('number', 'col1'); data.addColumn('number', 'col2'); data.addColumn('number', 'col3'); then I've setup the two charts with ChartWrapper: chart = new google.visualization.ChartWrapper({ 'chartType': 'LineChart', 'containerId': 'chart1div', 'options': { title: 'Chart1', curveType

VBA: Formatting Multiple Selected Charts (Chart, Plot, Legend, etc.)

烈酒焚心 提交于 2020-01-06 23:51:27
问题 I am looking to format multiple selected charts on Excel 2010 using VBA. I want the code to work whether I choose one or multiple charts. The code below works when only one chart is selected but when multiple charts are selected, I get a "run-time error '91' Object variable or With Block variable not set". Any idea how to run the macro for number of selected charts? Sub ChartFormat5_Click() ''Adjust chart area ActiveChart.ChartArea.Select 'Size Selection.Width = 631.9 Selection.Height = 290.1

Is it possible to get an excel chart with possibility to select the graphs to display?

拟墨画扇 提交于 2020-01-06 17:57:08
问题 I have several data in excel sheet and I wonder if its possible (through macros or something else) to select the data and display the series needed. I'm not quite sure if I explained the situation correctly... But I have multiple curves, and instead of plot the average curve or single curves, I would like to have the option to plot: curve 1, curve 2, curve 3, average curve... Kind regards, DNA 回答1: My preferred way to do this is with a combination of a couple of ideas. In general, Excel

How to remove white areas in Chart? [closed]

不羁岁月 提交于 2020-01-06 17:03:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . How can I remove white areas (1,2) and reduce width of axis (3) in chart (C#, Visual Studio 2013). Width of chart about 16000px. PS: If width of chart short (1000-2000 px) there are no white areas and width of axis is normally. 回答1: The large white spaces are the proportionally

trying to show the two graphs on same page

旧时模样 提交于 2020-01-06 15:29:14
问题 I am using win forms application I am using single ms chart control and generating two different charts and want to show two on same page by using bool overview (this means when the applications runs one graph will be shown and if you click on that graph i want to show another one along with this one ) by the following code private void chartControlMemberTotals_Click(object sender, EventArgs e) { kpiMemberTotalsForm.DrawKpi(this.chartControlMemberTotals, startDate, endDate, true); } public