I've got a hidden field that contains the values of dataset. Whith Chart.js I read the hidden field and then I plot the graph.
I've got 2 questions:
Which is the maximum number of values that a scatter graph can display?
Consider a dataset with thousands values (> 100.000) that can't be rendered with one load becouse dataset is too big to be stored in a hidden field. Is there a way to fragment the dataset in part and render only if user demand it (like a scrollbar and load the first half by default and if moved to load the second half)?
Related
In a nutshell, x-axis categories are text (survey location ID #s) and the y-axis is numeric (nutrient concentration value). There are no data for some of the survey locations so I want to exclude those particular stations from the graph.
The fixes I've seen are for small data sets but I'm subsetting from a larger dataset. There has to be a simpler way to fix this than copying and pasting the data every time I need to do a different graph.
Help!
My problem is as follows:
The user inputs two numbers between 2 and 25, these numbers are used to create a grid. Every point on the grid has (x,y) coordinates. Based on the amount of points the user chose, my excel sheet is filled up with up to 25x25 (x,y) coordinates.
Example: A 6x7 grid is chosen by the user, the table is filled with 42 (x,y) coordinates and all other values in the table are set to "".
Now I want to use a scatterplot with lines connecting each array to plot the data.
Problem 1: If I only select the 6x7 part of the table that has values in it and create the scatterplot the result is correct. Until the user specifies a different grid, for example 8x9, then the graph is obviously missing two rows and two columns of input data.
Problem 2: If I select the entire 25x25 part of the table, including all the "" values, the graph axes get messed up. The y-axis works properly, but the x-axis shows sequential values (0-7) instead of the x-coordinates.
Problem 3: If I replace all the "" values in the table to 0 or NaN and plot the entire table the axes are correct, but the lines between the scatter data get messed up.
Question:
Is there a way to automatically change the input data for the plot, or is there a way to correctly display the values on the x-axis if I select all the data?
Not sure this will work in your case, but it's worth a try, especially since no one's addressed your post in 3+ hours. I've had success with this approach: 1) charting the largest data set, 2) copying the resulting chart, and 3) trimming the data it draws from to produce all smaller data sets.
To get this to work takes a lot of thought in laying out that largest data set so that all the other plots follow as needed. To illustrate, I've somewhat mimicked your data and in the animated gif I show largest data set, plus 2 others produced by copying it. Then I demonstrate how to make the second one, including the rescaling required to make all plots scaled equally. Notice that I've arranged things so that only one set of x-values feeds all the series. If you can do this, it makes working with the Excel's interface much easier.
After wrestling with it all night I came to the following solution:
Instead of setting all the empty cells to "" or zero the cells should be be set to #N/A (not available). The graph properly ignores the #N/A cells exactly like I want it to and updates when values are entered into them.
The page linked to here has been a great help to me. The method of using the named function (=(ROW(INDIRECT("1:361"))-1)*PI()/180) to produce the circle data points is very slick compared to my original method that was to calculate them individually, writing them in to rows.
My data set includes some 50k rows of data, each one defining a circle. The set is divided into 50 groups and I need to plot one circle from each group as selected via a scroll bar controlling a LOOKUP routine.
Please can someone suggest how I might modify the function (=(ROW(INDIRECT("1:361"))-1)*PI()/180) to reduce the number of data points it produces? I want to reduce the computing load and also, it's not practical to display & format data markers with such high data density. My existing circles are produced with just 18 coordinate pairs and are satisfactorily rounded.
Thanks in advance. Steve.
This would give you 19 data points, 0 and 360 as the start/end points with another every 20%
=(ROW(INDIRECT("1:19"))-1)*PI()/9
In a JSF webpage, I display a line chart thanks to Primefaces.
Each point corresponds to a date for abscissa and his value. Problem is when I start to display too much points, all x-labels (dates) are printed and user is unable to read them.
Is there a way to limit the number of labels printed to avoid labels overlays?
Primefaces axis labels are determined by the ChartModel backing them. So to manage your situation
Limit the entries in the LineChartModel to a manageable number
Increase the size of your chart as a whole, using it's width and height css values under the style attributes
Use the max X or max Y to restrict value displayed on the corresponding axes
I have 2 sets of data
In both the sets, each element is in between 0 and 1000.
130 elements
75 elements
My professor wants me to plot a "graph" which will allow him to compare these two sets of data.
I plotted a histogram, but since there are two different numbers of data ( 130 and 75), it was of no use.
What is the graph that I should plot which will show the relating between these two sets of data?
How do I "normalize" the data so that it looks like both data have some common details which can be compared?
Thanks in advance.
If there are only one variable: value,
I would have density graphs for value range so that you could see that 25% of all values fall between 0-250 in one data set but only 20% of the other falls within the same range . These could be pie chart or a bar graph.