12th June, Marco
Should I use SVG or canvas for the charts on my website?
9th June, Richard
New version of RGraph: version 7.20
3rd June, Patrick
Question about installing RGraph
1st June, Ouja
How do I add a click event to a bar in my Bar chart?
8th May, Anthony Kuma
Does the SVG Line chart have outofbounds functionality?
AJAX functions
RGraph has some simplified ajax helper functions that make it much easier to initiate ajax calls without having to be concerned about what the format that the response is in (string, number, object etc).
Previously, because the response to an ajax request is a string, you had to convert it into a usable form (such as a number or an array).
With these functions though they automatically do the data format conversion for you. The AJAX functions that are available to you are:
There are straight-forward examples of the AJAX functions in the basic examples in the download archive
<script>
RGraph.AJAX.getJSON('/getdata.html?json', function (json)
{
new RGraph.Bar({
id: 'cvs',
data: json.data,
options: {
marginLeft: 50,
marginInner: 10,
tickmarksStyle: 'endcircle',
linewidth: 2,
xaxisLabels: json.labels
}
}).draw();
});
</script>
* As of October 2013 there's now a dedicated CSV reader (that also fetches a CSV file via AJAX) that's a part of RGraph.