charts

WPF charting/visualization of realtime data

不羁岁月 提交于 2019-12-20 19:42:03
问题 I've been trying to figure out what is the appropriate way to render real-time data as a line graph in WPF. And by real-time I actually mean, data that is being collected from a USB device that generates data at a rate of approximately 40Hz. There are multiple (up to 7) streams of data that I'm reading at 40Hz in an asynchronous fashion. I've tried using two off-the shelf solutions (WPF Toolkit charting and Swordfish charts) and almost looked into the Dynamic Data Visualization component but

How to create a stacked line plot

一个人想着一个人 提交于 2019-12-20 18:09:51
问题 There are multiple solutions to create a stacked bar plot in R, but how to draw a stacked line plot? 回答1: A stacked line plot can be created with the ggplot2 package. Some example data: set.seed(11) df <- data.frame(a = rlnorm(30), b = 1:10, c = rep(LETTERS[1:3], each = 10)) The function for this kind of plot is geom_area : library(ggplot2) ggplot(df, aes(x = b, y = a, fill = c)) + geom_area(position = 'stack') 回答2: Given that the diagram data is available as data frame with "lines" in

Multi-Level/Grouping of Axis Labels Using d3

谁说我不能喝 提交于 2019-12-20 10:39:55
问题 I was wondering if there is an easy way to add multi-level/hierarchical/grouping of axis label in d3. For example, if I have a line chart with month name for x-axis spanning across multiple years, I would want to also have year as label below the month names so it looks something like this. Oct Nov Dec Jan Feb Mar Apr |_____________| |___________________| 2011 2012 I understand that you can do anything in SVG to make it works, but I want to use d3 as much as possible so that it's much easier

create a multi line chart using Chart.js

倖福魔咒の 提交于 2019-12-20 10:34:06
问题 I am trying to create a multiline chart using Chart.js I can do this for 1 line and i can do 2 lines using a fixed data structure but I cannot get multiple lines to display data passed to the data structure. here is the example usage abbreviated from chart.js website http://www.chartjs.org/docs/#getting-started var myLineChart = new Chart(ctx).Line(data); var data = { labels: ["January", "February", "March", "April", "May", "June", "July"], datasets: [ {fillColor: "rgba(220,220,220,0.2)",

XY Plotting with Java [closed]

淺唱寂寞╮ 提交于 2019-12-20 09:57:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm trying to find some information about plotting with Java - specifically xy plotting . I've come across multiple java libraries but

XY Plotting with Java [closed]

我们两清 提交于 2019-12-20 09:57:12
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm trying to find some information about plotting with Java - specifically xy plotting . I've come across multiple java libraries but

Draw horizontal line on chart in chart.js on v2

喜欢而已 提交于 2019-12-20 08:59:39
问题 I have drawn a line chart using chart.js. For the labels and datasets i am getting values from the database. I am new to chart.js and its very powerful library, yet i am unable to completely understand it. I want to draw multiples horizontal lines. Like where if mean of dataset, standard deviation and min and max. I have tried the question here in stackoverflow but these are giving errors or may be i am not able to understand the working. This is my chart.js code function display_graph(id,

Issue with Hash in chart creation

Deadly 提交于 2019-12-20 07:27:19
问题 I am trying to create chart by Get-CorpChart-FullEdition script, which I found very good in chart creation. On the website I found below instruction. So now, all what you have to do is to give the $Cities array to the function as -Data parameter, and supply the -Obj_Key parameter as "City_Name", and -Obj_Value as "City_Population" I created a hash like this: $active_inactive = @{} $red = 15 $orange = 25 $active_inactive['active']= $red $active_inactive['inactive'] = $orange . "D:\Auto\Get

How to remove extra spacing from piechart?

亡梦爱人 提交于 2019-12-20 07:27:00
问题 I am working on pie-chart. problem is it keep spacing around piechart . how can i remove extra spacing from piechart. Your answer would be appreciated 回答1: try calling setOffsets(float left, float top, float right, float bottom) on the Chart EX chart.setViewPortOffsets(0f, 0f, 0f, 0f); check Modifying the Viewport 回答2: I had the same problem and solved it by adding below line to dataset: dataSet.setSelectionShift(0f); 来源: https://stackoverflow.com/questions/37159890/how-to-remove-extra