charts

D3 Panning Chart with Dates

落爺英雄遲暮 提交于 2019-12-22 01:16:59
问题 I'm trying to get a multi-line date based chart to pan nicely across the X date axis and I simply cannot figure out what the problem is. I have the zoom behaviour set up in the code but it's just not performing as expected. If you click on a point in a line and scroll it appears to be scrolling the axis, if it click on the labels in the axis it also scrolls but the actual visualisation of data doesn't scroll. var zoom = d3.behavior.zoom() .x(x) .scaleExtent([1, 1]) .on("zoom", function () {

Create Charts with Chart.js Using C# string causes problems

☆樱花仙子☆ 提交于 2019-12-22 00:56:47
问题 I am trying to create charts using Chart Js in my asp.net application. I am fetching data from code database and and generating the string as per the documentation in back end. And then i am calling that web method to fetch the chart data and render it on page. function LoadVarianceChart() { var data; $.ajax({ type: "POST", url: "Analysis.aspx/GetVarianceChart", data: "", contentType: "application/json; charset=utf-8", dataType: "json", success: function (r) { $("#dvVarianceChart").html("");

How to pass data from java program to javafx application chart?

霸气de小男生 提交于 2019-12-22 00:25:59
问题 I am new to JavaFX but I am not new to Java. I have a big complex system that produces some results in a loop. What I am trying to achieve is to plot the results of each iteration on a JavaFX chart. I was doing this with no problem with the java jFreeChart libraries, but now I am trying to switch to JavaFX. Charts looks more fancy and I like the way style is handled. Anyway, I am struggling in trying to understand how to add points to a XYChart.Series object in a JavaFX application. All

Google Charts: Animation doesn't work for one chart, pointing annotations in the title area

主宰稳场 提交于 2019-12-21 22:45:04
问题 I'm a bit new with google charts, I was playing around to learn it but I got two problems with my chart: 1) I'm not sure why the second chart (red) displays without animation 2) How can I extend the annotation lines with the values to the top of my graph? The best case would be that the values are shown under the chart title <html> <head> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {

Chart.js click on labels, using bar chart

久未见 提交于 2019-12-21 21:04:49
问题 i need help with my Chart.js interactivity. When I click on the label, I need to return the column(index) number at which I clicked. I tried to use getElementsAtEvent but it only work if I click directly at chart. This http://jsfiddle.net/yxz2sjam/ is pretty much what I am looking for but getPointsAtEvent is no longer available in the new versions. canvas.onclick = function (evt) { var points = chart.getPointsAtEvent(evt); alert(chart.datasets[0].points.indexOf(points[0])); }; I also found

WPF Charting: how to collapse datapoint dots in lineseries

送分小仙女□ 提交于 2019-12-21 20:33:02
问题 I have multiple line series in a chart. Chart lines are drawn first and then dots follow the lines. It's annoying and the size of big dots makes large datasets simply useless. Currently I am doing this for each lineseries... <chartingToolkit:LineSeries Title="Socket 2" Name="LineSocket2" LegendItemStyle ="{StaticResource LegendItemStyle}" IndependentValueBinding="{Binding timestamp}" DependentValueBinding="{Binding wattage}" ToolTip="Socket 2"> <chartingToolkit:LineSeries.DataPointStyle>

How to create java poi bar chart combining two bars value like given image?

丶灬走出姿态 提交于 2019-12-21 20:13:14
问题 I want to create bar chart something like this with java poi , (Has two set of bars),Till now could find only for single type of bars, can anyone help me out with any reference?? Thanks. 回答1: Not clear from your question what code for creating bar chart using apache poi you have found already. Until now apache poi does only supporting line chart and scatter chart but not bar chart directly. So creating a bar chart is only possible using the underlaying low level objects. For a reference do

Excel Variable Ranges while creating a chart

落花浮王杯 提交于 2019-12-21 19:53:27
问题 So basically I need to be able to select the last row to create a chart using this method. Sub createchart2() lastA = Range("A1").End(xlDown).Row ActiveSheet.Shapes.AddChart.Select ActiveChart.ChartType = xlLine ActiveChart.SetSourceData Source:=Range("Main!$A$3:$A$10") End Sub I need the range for A10 to be able to select the last row in the A column. 回答1: Is this what you are trying? Sub createchart2() Dim lastA As Long lastA = Range("A" & Rows.Count).End(xlUp).Row ActiveSheet.Shapes

Android Line chart/graph API

╄→гoц情女王★ 提交于 2019-12-21 19:53:01
问题 I need to show progressive numeric stats to my Line Graph/Chart. Please share your opinion and advice. Please also make a note that I prefer if there would be a native API. rohit 回答1: AChartEngine is a charting library for Android applications. It currently supports the following chart types: line chart area chart scatter chart time chart bar chart pie chart bubble chart doughnut chart range (high-low) bar chart dial chart / gauge combined (any combination of line, cubic line, scatter, bar,

How can configure my y-axis on chart.js?

余生颓废 提交于 2019-12-21 19:30:14
问题 I am trying to build graph. My y-axis start with 0 here, I dont know how to configure it and why it is talking 0 - I see other post which mentioned scaleOverride:true, scaleStartValue:0.1, scaleStepWidth:5 - I dont know how to use that in my below code , how can configure y-axis in chart.js. Any pointer would be I have following code var barChartData = { labels: ["January", "February", "March", "April", "May", "June", "July"], datasets: [{ label: 'Dataset 1', backgroundColor: "rgba(220,220