PHP Classes

File: style/js/custom.js

Recommend this page to a friend!
  Classes of Ahmed Khan  >  Custom PHP CMS  >  style/js/custom.js  >  Download  
File: style/js/custom.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Custom PHP CMS
Manage the content of a site that can be searched
Author: By
Last change:
Date: 3 months ago
Size: 581 bytes
 

Contents

Class file image Download
$(document).ready(function() {
    var options = {
        chart: {
            renderTo: 'chart',
            defaultSeriesType: 'column'
        },
        title: {
            text: 'Voting Results'
        },
        xAxis: {
            categories: []
        },
        yAxis: {
            title: {
                text: 'votes'
            }
        },
        series: [{}]
    };
    $.getJSON('votecount2.php', function(data) {
        options.series[0].name = "Votes";
        options.series[0].data = data;
        var chart = new Highcharts.Chart(options);
    });
});
For more information send a message to info at phpclasses dot org.