A basic SVG Bar chart using the AJAX getString() function

This is a demonstration of the RGraph.SVG.AJAX.getString() function. This function fetches information from your server and returns it to you as a string without any number conversion - so you could use it to fetch labels or other text for example.

This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.common.ajax.js"></script>
<script src="RGraph.svg.bar.js"></script>
Put this where you want the chart to show up:
<div style="width: 750px; height: 300px" id="chart-container"></div>
This is the code that generates the chart: