data-visualization

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

Plotting of Network Topology graph based on json input

独自空忆成欢 提交于 2019-12-20 15:31:34
问题 I want to draw network topology graph with Highchart or any other js library by proving json data as input . While going through the example at http://www.highcharts.com/demo/renderer for Topology plot requirement , I found that it is static and doesn't have any example with fixed json format to render topology dynamically on basis of topology xml . seeking help to plot Logical Topology/network topologies based on various json /xml. 回答1: Check out netjsongraph.js. See the netjsongraph demo

Add labels to D3 Chord diagram

坚强是说给别人听的谎言 提交于 2019-12-20 09:04:06
问题 I'm a rookie programmer, so this one will probably be an easy one for most of you. What lines of code do I need for labels and/or mouse-over text for this Chord diagram? http://mbostock.github.com/d3/ex/chord.html I need it to display the name of the category in the outer strip. When you mouse over, I want to display the exact number and both categories. Something like this: 'A: 5 thing from B'. EDIT: I still can't figure out how to implement it in my code. Can someone fill in my example code

displaying charts in browser while keeping data safe

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 07:35:48
问题 I have recently been exploring the different options for displaying charts in a browser. I have tried using the d3js library, google charts, java applets and actionscript(Flash). My research shows that people are moving away from flash and java. This makes d3js an attractive option. Though I see the value in using d3js I have an issue: Simply right click and 'view source' and one can see the raw data going in to the chart. This is why I considered flash and java since the source can not be

UWP StackedLineSeries doesn't show values

廉价感情. 提交于 2019-12-20 06:45:42
问题 I am trying to use WinRTXamlToolkit.Controls.DataVisualization.UWP trying to draw any of the stacked charts like this: But only this comes out: Please help me, I have to use stacked series but the framework doesn't act as it should be.. 回答1: Since I don't know how you define the code behind, I just provide the sample code as follows which can create a StackedLineSeries chart successfully. XAML Code <Page x:Class="CStackLineChat.MainPage" ... xmlns:charting="using:WinRTXamlToolkit.Controls

How can I align the innerPlots?

风格不统一 提交于 2019-12-20 05:39:13
问题 I have 2 charts: chart1 and chart2 . I want both charts to have same innerPlotSize and location . But chart1 has a secondary yaxis. This does NOT work: chart2.ChartAreas[0].AlignWithChartArea = chart1.ChartAreas[0].Name; chart2.ChartAreas[0].AlignmentStyle = AreaAlignmentStyles.PlotPosition; chart2.ChartAreas[0].AlignmentOrientation = AreaAlignmentOrientations.Vertical; 回答1: This will align the InnerPlotPositions of two Charts : // align the controls: yourChart1.Left = yourChart2.Left;

matplot pie: rotate labels horizontally

馋奶兔 提交于 2019-12-20 05:36:11
问题 Using matplot to create a little gauge with the code below: group_size=[10,10,10,10,10,50] labels=['AAAA','BBBB','CCCC','DDDD','EEEE',''] fig, ax = plt.subplots() ax.axis('equal') pie = ax.pie(group_size, radius=2.2, colors=['k'] ,startangle=180,counterclock=False) pie2 = ax.pie([10,10,10,10,10,50], radius=2, labeldistance=0.7, labels=labels, rotatelabels = 270, startangle=180,counterclock=False) plt.show() I am trying to get the labels to go horizontally and align with the midpoint of each

Contour plot for quadratic equation in R

白昼怎懂夜的黑 提交于 2019-12-20 05:33:09
问题 I'm trying to recreate contour plot shown in the picture below using R. It is a contour plot of constant syrup loss as a function of speed and pressure. Data used for this example: speed = c(100,100,100,100,100,100,120,120,120,120,120,120,140,140,140,140,140,140) pressure = c(10,10,15,15,20,20,10,10,15,15,20,20,10,10,15,15,20,20) syrup_loss = c(-35,-25,110,75,4,5,-45,-60,-10,30,-40,-30,-40,15,80,54,31,36) With that data quadratic equation was created: model <- lm(syrup_loss~speed + pressure +

Add points to the existing matplotlib scatter plot

自作多情 提交于 2019-12-20 05:32:11
问题 How to add points to the existing diagram? The straightforward solution is to plot a new scatter, adding new data. ax.scatter(data[:,0], data[:,1], cmap = cmap, c = color_data) ax.scatter(new_points_x, new_points_y, color='blue') But if we want to add more points with new colors, there is a problem: we have to take into consideration all previously added points. It would be great if I could use a special function like AddPoint(ax, new_point, color) I want only add new points in new colors. I

Visualize negative/positive data using levelplot in R

假如想象 提交于 2019-12-20 05:05:06
问题 I need your insights on how to visualize/map data that span negative and positive values. I have 6 rasters which have been stacked together ( s ) and will subsequently be plotted via the levelplot function in R. Below are the max and min values for each raster . 39.2887, 53.09207 (min, max) # r1 -32.4956, -27.25534 (min, max)# r2 -14.37683, -11.37742 (min, max)# r3 9.512934, 13.60197 (min, max)# r4 -4.993901, -1.851784 (min, max)# r5 -8.190711, -5.104764 (min, max)# r6 At the moment, I am