Guest User

Untitled

a guest
Feb 14th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. var dataset = [];
  2.  
  3. for (var index = 0; index < yAxis.length; ++index)
  4. {
  5. dataset.push(
  6. {
  7. label: yAxisName[index],
  8. fill: false,
  9. lineTension: 0.1,
  10. backgroundColor: "rgba(255,192,192,0.4)",
  11. borderColor: "rgba(75,192,192,1)",
  12. borderCapStyle: 'butt',
  13. borderDash: [],
  14. borderDashOffset: 0.0,
  15. borderJoinStyle: 'miter',
  16. pointBorderColor: "rgba(75,192,192,1)",
  17. pointBackgroundColor: "#fff",
  18. pointBorderWidth: 1,
  19. pointHoverRadius: 5,
  20. pointHoverBackgroundColor: "rgba(75,192,192,1)",
  21. pointHoverBorderColor: "rgba(220,220,220,1)",
  22. pointHoverBorderWidth: 2,
  23. pointRadius: 5,
  24. pointHitRadius: 10,
  25. data: yAxis[index]
  26. }
  27. );
  28. }
  29.  
  30. var data = {
  31. labels: xAxis,
  32. datasets: dataset
  33. };
  34.  
  35. var myFirstChart = new Chart(chrt).Line(data);
Add Comment
Please, Sign In to add comment