A web app I am working on uses ag-grid to render detailed status data in a grid. Customer wants to chart a comparison between planned and actual status values, which I was able to do quickly and easily with ag-grid's charting capabilities. However, after a review the customer is interested in displaying the line as stepped between points rather than linear since each point is a target and data between targets is not interpolated in the details. I assumed that line interpolation was a fairly standard (and common) option for rendering line charts and would be supported. However, I cannot seem to find an option which allows me to set the line interpolation or stepping.
Am I just missing an option or is line interpolation and stepping just not supported for ag-grid line charts? If it is not supported, can this be done through some kind of customization, or am I stuck either adding points to my line to make it kind-of-sort-of look like a stepped line or pulling in a whole other charting library for what seems like a basic function?
I have drawn several bar chart, scatter, and line graphs in SPSS 21 and spent lots of time on editing their look. But, I realized that I made some mistakes in data and they are already changed. In Microsoft excel, graphs are interactive/dynamic, meaning that they change if you modify the values of each cell. Can we mimic the same feature in SPSS 21? Is there any way I can update graphs without redrawing them from the scratch? I have saved them as output, but when I load them no change is reflected and the graphs are associated with old data.
I have saved syntaxes to produce the graphs, but when I run the syntax, the graphs are produced in standard looking that need lots of changes to look good. When I save chart templates and apply them to new charts, they don't look the same meaning that some of the changes are not applied.
Please help.
It is not possible. I feel you with making all the changes and the inconsistency in applying chart templates though. A few tips to mitigate this in the future are;
Do everything you can with GGRAPH and inline GPL statements to get the look of the chart close to how you want it.
Start with a chart template that is closer to your typical end goals. (See here on how to make some simple edits to the default template).
Some things are still difficult to fully automate like label placement in the chart. These simple tips though get me very close to the end goal, and only rarely do I need to take the time to polish a chart with editing post-hoc.
I have 42 variables and I have calculated the correlation matrix for them in Matlab. Now I would like to visualize it with a schemaball. Does anyone have any suggestions / experiences how this could be done in Matlab? The following pictures will explain my point better:
In the pictures each parabola between variables would mean the strength of correlation between them. The thicker the line is, the more correlation. I prefer the style of picture 1 more than the style in picture 2 where I have used different colors to highlight the strength of correlation.
Kinda finished I guess.. code can be found here at github.
Documentation is included in the file.
The yellow/magenta color (for positive/negative correlation) is configurable, as well as the fontsize of the labels and the angles at which the labels are plotted, so you can get fancy if you want and not distribute them evenly along the perimeter/group some/...
If you want to actually print these graphs or use them outside matlab, I suggest using vector formats (eg eps). It's also annoying that the text resizes when you zoom in/out, but I don't know of any way to fix that without hacking the zoom function :/
schemaball % demo
schemaball(arrayfun(#num2str,1:10,'uni',false), rand(10).^8,11,[0.1587 0.8750],[0.8333 1],2*pi*sin(linspace(0,pi/2-pi/20,10)))
schemaball(arrayfun(#num2str,1:50,'uni',false), rand(50).^50,9)
I finished and submitted my version to the FEX: schemaball and will update the link asap.
There are a some differences with Gunther Struyf's contribution:
You can return the handles to the graphic object for full manual customization
Labels are oriented to allow maximum left-to-rigth readability
The figure stretches to fit labels in, leaving the axes unchanged
Syntax requires only correlations matrix (but allows optional inputs)
Optimized for performance.
Follow examples of demo, custom labels and creative customization.
Note: the first figure was exported with saveas(), all others with export_fig.
schemaball
x = rand(10).^3;
x(:,3) = 1.3*mean(x,2);
schemaball(x, {'Hi','how','is','your','day?', 'Do','you','like','schemaballs?','NO!!'})
h = schemaball;
set(h.l(~isnan(h.l)), 'LineWidth',1.2)
set(h.s, 'MarkerEdgeColor','red','LineWidth',2,'SizeData',100)
set(h.t, 'EdgeColor','white','LineWidth',1)
The default colormap:
To improve on screen rendering you can launch MATLAB with the experimental -hgVersion 2 switch which produces anti/aliased graphics by default now (source: HG2 update | Undocumented Matlab). However, if you try to save the figure, the file will have the usual old anti-aliased rendering, so here's a printscreen image of Gunther's schemaball:
Important update:
You can do this in Matlab now with the FileExchange submission:
http://www.mathworks.com/matlabcentral/fileexchange/48576-circulargraph
There is an exmample by Matlab in here:
http://uk.mathworks.com/examples/matlab/3859-circular-graph-examples
Which gives this kind of beautiful plots:
Coincidentally, Cleve Moler (MathWorks Chief Mathematician) showed an example of just this sort of plot on his most recent blog post (not nearly as beautiful as the ones in your example, and the connecting lines are straight rather than parabolic, but it looks functional). Unfortunately he didn't include the code directly, but if you leave him a comment on the post he's usually very willing to share things.
What might be even nicer for you is that he also applies (and this time includes) code to permute the rows/columns of the array in order to maximize the spatial proximity of highly connected nodes, rather than randomly ordering them around the circumference. You end up with a 'crescent'-shaped envelope of connecting lines, with the thick bit of the crescent representing the most highly connected nodes.
Unfortunately however, I suspect that if you need to enhance his code to get the very narrow, high-resolution lines in your example plots, then MATLAB's currently non-anti-aliased graphics aren't quite up to it yet.
I've recently been experimenting with MATLAB data and the D3 visualization library for similar graphs - there are several related types of circular visualizations you may be interested in and many of them are interactive. Another helpful, well-baked, and freely available option is Circos which is probably responsible for most of the prettier versions of these graphs you've seen in popular press.
I would like SPIN to print out the computed state space, so that I can make its visualization and then manually explore it. Is that possible?
I have already checked such flags as -DCHECK and -DVERBOSE, but I guess, that those are not what I am looking for...
No, currently there is no graphical output of the searched state space in spin. It is possible to plot the program graph using graphviz dot, as described here.
I want to show a line chart, each point in the line chart will refer to a user. So whomever looks at the chart understands who the user is, I'd like each point to have a picture of the user and the user's name. Does anyone know any API that will let me do that?
I was looking at googles line chart (http://code.google.com/apis/chart/interactive/docs/gallery/linechart.html) but I cannot see anyway for me to have each data point represented as an image.
Using Java and JavaFX, you can build a StackPane where you can put two charts (one above other), where the back is a LineChart and the front is a ScatterChart. In this case, these charts will share the same X axis and Y axis, and on ScatterChart you can personalize the points with a picture.
Look:
How to personalize a chart style using Javafx and
How to produce an application with more than one chart in a StackPane
I hope this helps you.
It seems counter intuitive to have different points on the same line of a line graph represent different users.
(Line graphs) show in a linear form one or more variables that fluctuate over a period of time.
I believe if there is more than one variable that would mean there would be more than one line, so it is hard to make suggestions without more information about your specific application. With the currently available data I would recommend amcharts's Column chart with images on top: