gchart-plugin


A jQuery plugin which builds URLs for the Google Chart API

gChart is a URL builder for the Google Chart API. It allows you to use JavaScript and jQuery chaining to specify the data and content of your chart.

Example

``` $(document).ready( function(){ var chart = $("#chartArea").chart();

    chart.title('My test chart\nsub title');

    chart.width(300).height(200);

    chart.data(0).x(10,20,30,40,50).y([5,30,20,70,90]).color('0000ff');

    chart.xaxis(0).range(0, 50);

    chart.yaxis(0).range(0, 110);

    chart.data(0).label('Series 1');

    chart.data(0).markerType(MarkerType.Circle).markerSize(8).markerColor('00ff00');

    chart.type(ChartType.Line);

    chart.render();
}

) ```

Web Page

<body> <div id="chartArea" class="chartContainer"> </div> </body>

Project Information

Labels:
chart javascript jquery plugin