$(function () { var lineData = { labels: ["Ò»ÔÂ", "February", "March", "April", "May", "June", "July"], datasets: [ { label: "Example dataset", fillColor: "#03A9F3", strokeColor: "#FFAA00", pointColor: "#00ACAC", pointStrokeColor: "#fff", pointHighlightFill: "#fff", pointHighlightStroke: "#36a2eb", data: [55, 60, 40, 80, 60, 70, 80] }, { label: "Example dataset", fillColor: "#00ACAC", strokeColor: "#03A9F3", pointColor: "#00ACAC", pointStrokeColor: "#fff", pointHighlightFill: "#fff", pointHighlightStroke: "#ff6384", data: [30, 40, 80, 120, 66,45, 76] } ] }; var lineOptions = { scaleShowGridLines: true, scaleGridLineColor: "rgba(0,0,0,.05)", scaleGridLineWidth: 1, bezierCurve: true, bezierCurveTension: 0.4, pointDot: true, pointDotRadius: 4, pointDotStrokeWidth: 1, pointHitDetectionRadius: 20, datasetStroke: true, datasetStrokeWidth: 2, datasetFill: false, responsive: true, }; var ctx = document.getElementById("lineChart").getContext("2d"); var myNewChart = new Chart(ctx).Line(lineData, lineOptions); var barData = { labels: ["Ò»ÔÂ", "February", "March", "April", "May", "June", "July"], datasets: [ { label: "Electronics", fillColor: "#ffb014", strokeColor: "#ffb014", pointColor: "#36a2eb", pointStrokeColor: "#36a2eb", pointHighlightFill: "#fff", pointHighlightStroke: "rgba(220,220,220,1)", data: [20, 50, 70, 80, 90, 55, 40] }, { label: "Digital Goods", fillColor: "#3374dd", strokeColor: "#FB6D9D", pointColor: "#3b8bba", pointStrokeColor: "#ff6384", pointHighlightFill: "#fff", pointHighlightStroke: "rgba(60,141,188,1)", data: [40, 30, 60, 40, 20, 27, 90] } ] }; var barChartOptions = { //Boolean - If we should show the scale at all showScale: true, //Boolean - Whether grid lines are shown across the chart scaleShowGridLines: false, //String - Colour of the grid lines scaleGridLineColor: "rgba(0,0,0,.05)", //Number - Width of the grid lines scaleGridLineWidth: 1, //Boolean - Whether to show horizontal lines (except X axis) scaleShowHorizontalLines: true, //Boolean - Whether to show vertical lines (except Y axis) scaleShowVerticalLines: true, //Boolean - Whether the line is curved between points bezierCurve: true, //Number - Tension of the bezier curve between points bezierCurveTension: 0.3, //Boolean - Whether to show a dot for each point pointDot: false, //Number - Radius of each point dot in pixels pointDotRadius: 4, //Number - Pixel width of point dot stroke pointDotStrokeWidth: 1, //Number - amount extra to add to the radius to cater for hit detection outside the drawn point pointHitDetectionRadius: 20, //Boolean - Whether to show a stroke for datasets datasetStroke: true, //Number - Pixel width of dataset stroke datasetStrokeWidth: 2, //Boolean - Whether to fill the dataset with a color datasetFill: true, //String - A legend template legendTemplate: "