| 1 |
- $(window).on("load",function(){var o=$("#line-stacked-area"),r={responsive:!0,maintainAspectRatio:!1,legend:{position:"bottom"},hover:{mode:"label"},scales:{xAxes:[{display:!0,gridLines:{color:"#f3f3f3",drawTicks:!1},scaleLabel:{display:!0,labelString:"Month"}}],yAxes:[{display:!0,gridLines:{color:"#f3f3f3",drawTicks:!1},scaleLabel:{display:!0,labelString:"Value"}}]},title:{display:!0,text:"Chart.js Line Chart - Legend"}},a={labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",data:[65,59,80,81,56,55,40],backgroundColor:"rgba(103, 58, 183,.4)",borderColor:"transparent",pointBorderColor:"#673AB7",pointBackgroundColor:"#FFF",pointBorderWidth:2,pointHoverBorderWidth:2,pointRadius:4},{label:"My Second dataset",data:[28,48,40,19,86,27,90],backgroundColor:"rgba(0,188,212,.4)",borderColor:"transparent",pointBorderColor:"#00BCD4",pointBackgroundColor:"#FFF",pointBorderWidth:2,pointHoverBorderWidth:2,pointRadius:4},{label:"My Third dataset",data:[80,25,16,36,67,18,76],backgroundColor:"rgba(255,87,34,.4)",borderColor:"transparent",pointBorderColor:"#FF5722",pointBackgroundColor:"#FFF",pointBorderWidth:2,pointHoverBorderWidth:2,pointRadius:4}]},e={type:"line",options:r,data:a};new Chart(o,e)});
|