A pretty straight-forward stepped
Line chart. It uses the yaxisScaleUnitsPost
option and disables the horizontal grid lines. It also uses the trace()
effect.
<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:
<script> new RGraph.SVG.Line({ id: 'chart-container', data: [0.05,0.06,0.01,0.06,0.09,0.02,0.07], options: { marginLeft: 50, yaxisScaleDecimals: 2, stepped: true, linewidth: 3, shadow: true, backgroundGridVlines: false, backgroundGridBorder: false, xaxis: false, yaxis: false, yaxisScaleUnitsPost: 'v' } }).trace(); </script>