| 1 |
- $(window).on("load",function(){var o=$("#area-chart"),a={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"}},r={labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",data:[0,150,140,105,190,230,270],backgroundColor:"rgba(201,187,174,.3)",borderColor:"transparent",pointBorderColor:"#C9BBAE",pointBackgroundColor:"#FFF",pointBorderWidth:2,pointHoverBorderWidth:2,pointRadius:4},{label:"My Second dataset",data:[0,90,120,240,140,250,190],backgroundColor:"rgba(29,233,182,.6)",borderColor:"transparent",pointBorderColor:"#1DE9B6",pointBackgroundColor:"#FFF",pointBorderWidth:2,pointHoverBorderWidth:2,pointRadius:4}]},e={type:"line",options:a,data:r};new Chart(o,e)});
|