I have a chart which is currently implemented in RaVis which uses flex.
I want to implement the same chart using JavaScript/SVG chart library but so far I haven't found a suitable solution.
I can't even put a name to this chart.
Any ideas?
D3.js has a pretty similar radial tree that you could bend to suit your needs :
http://bl.ocks.org/mbostock/4063550
More examples : https://github.com/mbostock/d3/wiki/Gallery
Related
I tried using apex charts, but did not find proper doc for the react-apexcharts. I also tried react-google-charts, although it works fine, but it has unwanted spaces on sides which spoils the layout. I'm not sure about which module to use. Do you have a suggestion??
Author of ApexCharts here.
Thanks for reminding me to update the docs for the candlestick charts.
Here is the page that explains what should be the data-format.
Also, there is no major difference in options if you use react-apexcharts. The series prop should be given the required format as specified in the docs and rest will fall into places.
For those who are still asking which library to use for candlestick graphs.
Take a look Highcharts Highcharts candlestick graph
Good documentation and great features
I have a donut chart which updates data on click. I want to add labels to the same data. I am currently using the d3.js javascript library.
Here is my code on jsfiddle
What I don't understand it how to add labels to segments of the donut chart?
You have to use the arc.centroid function. Take a look at the following examples:
http://jsfiddle.net/nrabinowitz/GQDUS/
http://bl.ocks.org/2295263
http://jsfiddle.net/MX7JC/9/
http://blog.stephenboak.com/2011/08/07/easy-as-a-pie.html
Please take a look at: http://nvd3.org/examples/pie.html or http://bl.ocks.org/Guerino1/2295263. Check the code and you should be able to answer this question fairly easy. Have fun!
I am evaluating to change the graphics I generated so far using highcharts.js to d3.js
just for fun and I want to learn how d3.js works.
I wonder if there is something similar to the url below (see if you click on a pie it gives you new data), something dynamic and ready to use (or not to implement from zero).
What I wanna achieve, more or less...
http://lully.snv.jussieu.fr/gbif/mapping/graphs/examples/pie-legend.htm
thanks in advance
Pere
If you want to replace Highcharts, I think the only good open-source alternative available at the moment is Bob Monteverde's Novus charts library: http://novus.github.com/nvd3/. NVD3 has a nice pie chart and also has good legends. Take a look at all the charts from this library and you will see what I mean. You can also find a good pie chart in Stephen Boak's tutorial: http://blog.stephenboak.com/2011/08/07/easy-as-a-pie.html. Another interesting option is to look for Frank Guerino's questions on the D3 js google group. I would use NVD3 if I were you. It might need some adjustments, but it seems to be the best option currently. Good luck!
Simple function to generate Pie Charts utilisiing d3.js. This function is part of the http://xhprof.io/ project. It is able to handle datasets of arbitrary size. It has several options that allow for customisation, such as the label margin, circle radius and visibility of the percentage data (refer to the source code).
The demo is available at https://dev.anuary.com/858b33b7-bd66-507b-a9f1-533e4de79ba3/. The source code is available at https://github.com/gajus/pie-chart.
I have a feature where we have to compare multiple series. I have implemented the same with Highcharts but when I looked at highstocks compare i was pretty much impressed by the way it is doing. Can we extend the same features in Highcharts.
You can use the tooltip formatter to create a tooltip with the format
series.name: series.values[x] for point x, and loop that over each series in the chart. That should create the effect you want.
Highstock is also an extension of highcharts, and you should be able to swap it in for your highcharts code without any compatibility issues if you're willing to pay extra to use it or are using it for non-commercial purposes.
I don't know if it's possible to extend, but you can do the same using tooltip formatter.
Does anyone have any examples of stacked graphs (or stream graphs) in Raphael?
I'm wondering if there is a working Raphael equivalent of this D3 streamgraph:
The closest I've seen is this line chart example:
I guess I could just knock up a stacked graph based on this, but it'd be great if anyone already had some outline code.
Are you looking for something like this. It's based on Raphael.
If you need something more powerful I could recommend Sencha ExtJS.
Area Graph #1 and Area Graph #2 are looking quite like your posted D3 streamgraph.