Widget:WJG Sandbox chart: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 67: Line 67:
             ]
             ]
             }
             }
var newopts = {
yAxisLabel : "Y Axis Label",
yAxisFontFamily : "'Arial'",
yAxisFontSize : 16,
yAxisFontStyle : "normal",
yAxisFontColor : "#666",
}
             // get line chart canvas
             // get line chart canvas
             var buyers = document.getElementById('buyers').getContext('2d');
             var buyers = document.getElementById('buyers').getContext('2d');
             // draw line chart
             // draw line chart
             new Chart(buyers).Line(buyerData);
             new Chart(buyers).Line(buyerData,newopts);
             // pie chart data
             // pie chart data
             var pieData = [
             var pieData = [

Revision as of 17:38, 17 May 2014