Guest User

Untitled

a guest
Apr 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. var chart = new Chart('graph_data', {
  2. type: 'line',
  3. data: {
  4. labels: data.labels.labels,
  5. datasets: dataSets
  6. },
  7. options: {
  8. responsive: true,
  9. tooltips: {
  10. mode: 'index',
  11. intersect: false,
  12. },
  13. legend: {
  14. display: true,
  15. },
  16. scales: {
  17. xAxes: [{
  18. display: true,
  19. ticks: {
  20. autoSkip: true,
  21. maxRotation: 0,
  22. },
  23. scaleLabel: {
  24. display: true,
  25. labelString: attributeLabels[data.labels.type],
  26. }
  27. }],
  28. yAxes: [{
  29. display: true,
  30. }]
  31. }
  32. }
  33. });
Add Comment
Please, Sign In to add comment