Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1.  
  2. <canvas id="lineChart"></canvas>
  3.  
  4. //line
  5. var ctxL = document.getElementById("lineChart").getContext('2d');
  6. var myLineChart = new Chart(ctxL, {
  7. type: 'line',
  8. data: {
  9. labels: ["January", "February", "March", "April", "May", "June", "July"],
  10. datasets: [
  11. {
  12. label: "My First dataset",
  13. fillColor: "rgba(48,165,255,0.2)",
  14. strokeColor: "rgba(48,165,255,1)",
  15. pointColor: "rgba(48,165,255,1)",
  16. pointStrokeColor: "#fff",
  17. pointHighlightFill: "#fff",
  18. pointHighlightStroke: "rgba(48,165,255,1)",
  19. data: [65, 59, 80, 81, 56, 55, 40]
  20. },
  21. {
  22. label: "My Second dataset",
  23. fillColor : "rgba(251,192,22,0.2)",
  24. strokeColor : "rgba(251,192,22,1)",
  25. pointColor : "rgba(251,192,22,1)",
  26. pointStrokeColor : "#fff",
  27. pointHighlightFill : "#fff",
  28. pointHighlightStroke : "rgba(251,192,22,1)",
  29. data: [28, 48, 40, 19, 86, 27, 90]
  30. }
  31. ]
  32. },
  33. options: {
  34. responsive: true
  35. }
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement