This is an example of a basic Line chart. It has two datasets configured
(hence there being two lines), has a title, key and is animated by using
the Line chart trace()
effect. It uses carriage returns (\r\n
)
along with a none-breaking whitespace character (a unicode character)
in order to span the labels over two lines.
<script src="RGraph.svg.common.core.js"></script> <script src="RGraph.svg.line.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: