|
|
@ -12,8 +12,8 @@ |
|
|
|
//-----------------------
|
|
|
|
|
|
|
|
// Get context with jQuery - using jQuery's .get() method.
|
|
|
|
// var salesChartCanvas = $('#salesChart').get(0).getContext('2d');
|
|
|
|
// This will get the first returned node in the jQuery collection.
|
|
|
|
var salesChartCanvas = $('#salesChart').get(0).getContext('2d'); |
|
|
|
// This will get the first returned node in the jQuery collection.
|
|
|
|
|
|
|
|
var salesChartData = { |
|
|
|
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], |
|
|
@ -83,11 +83,11 @@ |
|
|
|
}; |
|
|
|
|
|
|
|
//Create the line chart
|
|
|
|
//var salesChart = new Chart(salesChartCanvas, {
|
|
|
|
// type: 'line',
|
|
|
|
// data: salesChartData,
|
|
|
|
// options: salesChartOptions
|
|
|
|
//});
|
|
|
|
var salesChart = new Chart(salesChartCanvas, { |
|
|
|
type: 'line', |
|
|
|
data: salesChartData, |
|
|
|
options: salesChartOptions |
|
|
|
}); |
|
|
|
|
|
|
|
//---------------------------
|
|
|
|
//- END MONTHLY SALES CHART -
|
|
|
|