# A Line chart showing 120,000 points

This is a basic Line chart - basic except for the fact that it's showing 120,000 points. When you're showing this much data you have to bear in mind how many pixels there are that are available for the line to render on.

For example, if your canvas is 800 pixels wide and the left and right margins are the default 35 pixels, this leaves 730 pixels for the data points For all 120,000 points. So you'll be rendering approximately 137 points per pixel... If you consider that a "wide view" and provide options to drill down into the data you can provide a more detailed look at the data. Much like zooming in on a large image to see more detail.

This goes in the documents header:

    <script src="RGraph.common.core.js"></script>
    <script src="RGraph.line.js"></script>

Put this where you want the chart to show up:

    <canvas id="cvs" width="750" height="250">
        [No canvas support]
    </canvas>

This is the code that generates the chart - it should be placed AFTER the canvas tag(s):