# A basic demo of the standalone CSV reader

Note: For browser security reasons the AJAX demos don't work offline. You can view the demos on the RGraph website here: https://www.rgraph.net/demos/index.html

This demo doesn't show a chart - but instead just uses the now standalone CSV reader to fetch a CSV file and show it. Both the canvas and SVG versions of the CSV reader are standalone.

Jay,8,6,3,5,6,8

    <!-- Use this for embedded data -->
    <div id="mydata" style="display: none">Jay,8,6,3,5,6,8</div>

    <script>
        new RGraph.CSV('/sample.csv', function (csv)
        //new RGraph.CSV('id:mydata', function (csv)
        {
            // Get the first row
            var data = csv.getRow(0);

            alert(data);
        });
    </script>