linechart

d3js line chart — how to extend last step to end of range?

大憨熊 提交于 2019-12-12 14:13:18
问题 It's simple, but I can't get rid of the problem. A line is a link between two points (values) and is drawn from value A to value B. So let's say A has value 10, B has value 20 and C is missing. The line is now drawn from 0 to 10 to 20 and finished. I want to draw the line from 0 to 10 to 20 to 25. Value is ment as the scale of the x-axis (0, 10, 20, 30, 40). Is this possible without changing the beginning of my line, so it still starts at the zero-point of the x-axis? Without drawing a

Can I sychronize two highcharts series with different years (leap year)

橙三吉。 提交于 2019-12-12 13:12:07
问题 The problem is best described in following fiddle : https://jsfiddle.net/bernhard_kern/85s2fm5a/3/. We use two series and two xAxis. xAxis: [{ type: 'datetime', min: new Date('2016/02/22').getTime(), max: new Date('2016/03/05').getTime() }, { type: 'datetime', min: new Date('2015/02/22').getTime(), max: new Date('2015/03/06').getTime() }], I want to compare yearly timseries, which have a different amount of values due to leap year (2016, 29 Feb.). Requirement: Display the equal dates below

Highcharts: Displaying Linechart with missing datapoints

本小妞迷上赌 提交于 2019-12-12 09:19:09
问题 I am calculating the average-value of properties for each week of the year. And I want to display these information in a line chart (x-Axis is the week of year, y-Axis the average value and the different lines represent different properties). But for any given property I do not necessarily have a datapoint for each week of the year. If I do not have such a datapoint I want my line for this property to interpolate between the datapoints I have. Anyone else run into a similiar issue? 回答1:

Is there a way to disconnect 2 dots in series in JavaFX LineChart?

﹥>﹥吖頭↗ 提交于 2019-12-12 09:05:13
问题 I have four series on LineChart. Each series consists of some amount of graphs split in time. By default, LineChart connects those graphs. It looks ugly and makes no sense in the context, so I want to separate them, but keep the color and the legend. In other words what I want is to remove connection between two specific points. Is there a way to do this without resorting to adding new series to the chart (the graphs are logically connected, and adding new series would confuse the user and

Live-Update LineChart in JavaFX

我的未来我决定 提交于 2019-12-12 04:35:48
问题 I have problem with updating JavaFX UI - I want to update line chart and some labels on my scene when it's already shown. My task is to do some calculations (calling function in other class which returns dataseries) and add updated series to the chart. The following code (which is in a loop) may present what i want to do: //double x - x value of the point i want to add to my chart //double y - y value of the point i want to add to my chart //string s - some result from function mySeries

HighCharts Draggable Plotline with Logarithmic axis scale

人盡茶涼 提交于 2019-12-12 02:54:26
问题 I have a simple Line chart using HighCharts & trying to add draggable plotlines in it. $(function () { function draggablePlotLine(axis, plotLineId) { var clickX, clickY; var getPlotLine = function () { for (var i = 0; i < axis.plotLinesAndBands.length; i++) { if (axis.plotLinesAndBands[i].id === plotLineId) { return axis.plotLinesAndBands[i]; } } }; var getValue = function() { var plotLine = getPlotLine(); var translation = axis.horiz ? plotLine.svgElem.translateX : plotLine.svgElem

Google Visualization Charts API - Changing Highlight Color of Explorer Function on Line Chart

巧了我就是萌 提交于 2019-12-12 01:42:49
问题 I'm using the Google Visualization API to generate some charts on a webpage and want to make use of the 'Explorer' option to allow users to zoom in on areas of Line Charts. The charts are working fine (see fiddle below) but I'd like to change the highlight color of the box created when dragging to zoom. The default is a very distinctive Google-ish Blue: I've currently set the parameters of the Explorer object as detailed below, but the "Line Chart Reference" doesn't mention a property that

Can't get nvd3 x value labels to display right

戏子无情 提交于 2019-12-11 19:34:38
问题 I'm trying to specify the x axis labels as strings. I can get the strings to show up, but I can't get them to spread out/align properly. All of the numbers are displaying correctly, I just can't seem to get the labels to spread out correctly or the domain to show up. I'm really looking to get the labels working, but the domain seemed like it could be an alternate way possibly. nv.addGraph(function() { var chart = nv.models.lineChart(); var fitScreen = false; var width = 600; var height = 300;

How to create Line Chart that starts from zero and 1 axis must be string-based?

只谈情不闲聊 提交于 2019-12-11 18:05:07
问题 My question is a combination of these old questions. how to start draw line from X - Y axis at o in JFreeChart ChartFactory.createLineChart How to draw line chart using jfreechart from top to bottom? I'm working in a project and need to implement a feature to create a line chart using JFreechart. Each line chart must satisfy all 2 conditions. Each line must start from (0,0) coordinate (or at least look like that) X-axis must be string-based. For example: "30-Oct-2017", "04-Dec-2017", etc.

How to pan a JavaFX LineChart

吃可爱长大的小学妹 提交于 2019-12-11 16:57:29
问题 In JavaFx I have a LineChart lc for which I create and add a series, lc.getData().addAll(series1); It displays just fine, but seems to sample all data points to fit the whole domain into the chart. Is there a way to force the LineChart to just display the last 10 data points, say, of the series? Ultimately I would like to create a way to pan the chart contents so that a window of the data is displayed, as a function of pan position. I found this SO post but it removes data, which means I