data-visualization

Highcharts not displaying data at some zoom levels

一笑奈何 提交于 2020-01-01 09:40:34
问题 I'm using Highcharts/Highstock to plot a fairly large amount of data (~10,000 points). The data consists of Date objects on the X axis and floats on the Y, formatted as such: [[(date), 1.728], [(date), 0.346], ...] . The dates are always 1 hour apart and there are no gaps in the data. When the chart's range is >= 21 days (such that at least 21 days of data is graphed), the chart appears correctly. Whenever the range is less than that, though, the chart becomes blank and the tooltip displays

Sankey diagram in javascript

旧城冷巷雨未停 提交于 2019-12-31 10:42:36
问题 I want to draw a Sankey diagram using Javascript. Can anyone provide some direction regarding the algorithms or libraries that are available for this? 回答1: This is a basic Sankey diagram using raphaeljs function Sankey(x0, y0, height, losses) { var initialcolor = Raphael.getColor(); var start = x0 + 200; var level = y0 + height; var heightunit = height / 100; var remaining = 100 * heightunit; function drawloss(start, level, loss) { var thecolor = Raphael.getColor(); paper.path("M" + (start -

Sankey diagram in javascript

落爺英雄遲暮 提交于 2019-12-31 10:42:20
问题 I want to draw a Sankey diagram using Javascript. Can anyone provide some direction regarding the algorithms or libraries that are available for this? 回答1: This is a basic Sankey diagram using raphaeljs function Sankey(x0, y0, height, losses) { var initialcolor = Raphael.getColor(); var start = x0 + 200; var level = y0 + height; var heightunit = height / 100; var remaining = 100 * heightunit; function drawloss(start, level, loss) { var thecolor = Raphael.getColor(); paper.path("M" + (start -

How to plot this this graph?

泄露秘密 提交于 2019-12-31 05:29:26
问题 Hi Data Visulization Experts! I'm trying to plot this graph hand-drawn example here in python. However, it seems it will be much trickier to plot as compared to normal plots. It would be really nice if a visualisation expert can help in plotting this. In the hand-drawn figure I kept all the lines red, however, they can be in different colours. Thank you for your responses :) 回答1: Without the data I cannot assist in plotting it, but you can solve it via Python by following the examples at:

Visualizing large 3D dataset with scatter plot

亡梦爱人 提交于 2019-12-30 10:55:07
问题 I'm running a simulation in MATLAB in which I have a large 3D dataset that changes each time step. I'm trying to visualize the data using a 3D scatter plot with points that take on different locations, sizes, colors, and transparency levels as the simulation proceeds. The size and color information are redundant. Rendering and rotating the figure in MATLAB is slow and choppy. My computer has a 4 GHz i7-4790 CPU and a NVIDIA GeForce GTX 750 Ti graphics card. I am using Matlab R2016a on Windows

XHR / Post Request using D3

你。 提交于 2019-12-30 10:30:51
问题 I was doing a research on how to make POST requests using the amazingly powerful D3 (which I can fully fully recommend for data visualization) and found the xhr2 branch where the authors of D3 are currently working on xhr POST request (and other request types) support. Seems like it is a brand new feature as the merge request is from yesterday (18 September 2012) :) And as curious I am I already wanted to try it out, using the following code sequence (which I have from this location) d3.text(

Creating a Text Labeled x-Axis with an Ordinal Scale in D3.js

亡梦爱人 提交于 2019-12-30 04:31:08
问题 I'm building a bar chart in d3.js with an ordinal x-axis whose ticks should label the chart with text. Could anyone explain how the ordinal scale "maps" x ticks to the corresponding bar positions? Specifically, if I want to designate the x tick labels with an array of text values to the corresponding bars in a bar chart. Currently I'm setting the domain as the following: var labels = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t"]; var xScale = d3.scale

Data Visualization libraries [closed]

点点圈 提交于 2019-12-30 03:37:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am currently in the startup of my new project. It's a data visualisation project, where I want to develop an application that can visualise data (no matter where it comes from). Right now,I am trying to find a visualisation library that I can use. Which one do you recommend? For me it looks like the main

R YaleToolkit: How to change the font size of tick labels on the sparklines?

梦想与她 提交于 2019-12-29 18:44:32
问题 I'm using this function for some quick and easy sparklines with R but I can't seem to work out how to change the font size to avoid ugly overlaps of the y-axis tick labels. Here's my code (see below for a reproducible example): sparklines(gamma.df, sub=c(1:23),outer.margin = unit(c(2, 2, 2, 2), "cm")) and the resulting plot: I seem to be able to completely suppress the y-axis with sparklines(gamma.df, sub=c(1:23),yaxis=FALSE,outer.margin = unit(c(2, 2, 2, 2), "cm")) But what I really want is

Is it possible to have different legend background colors for different data rows in Google bar chart, without breaking the chart?

故事扮演 提交于 2019-12-29 09:19:10
问题 See the example code: var data = new google.visualization.DataTable(); data.addColumn('string', 'Mac'); data.addColumn('number', 'Score'); data.addColumn({ type: 'string', role: 'style' }); data.addRows([ ['Mac model 12', 200, 'color: #8bba30; opacity: 0.75;'], ['Another Mac Model', 110, 'color: #ffcc33; opacity: 0.75;'], ]); var options = { title: '', width: 500, height: data.getNumberOfRows() * 40 + 100, hAxis: { minValue: 0, maxValue: 255, ticks: [0, 75, 150, 255], textPosition: 'out',