Advertisement
Guest User

Untitled

a guest
May 24th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. options: {
  2. zoomEnabled: true,
  3. responsive: true,
  4. maintainAspectRatio: false,
  5. legend: false,
  6. scales: {
  7. xAxes: [{
  8. display: false,
  9. type: "time",
  10. time: {
  11. unit: 'minute',
  12. tooltipFormat: "DD MMM LTS",
  13. // min: (this.interval.time_start) ? this.$moment.unix(this.interval.time_start) : this.$moment(),
  14. // max: (this.interval.time_end) ? this.$moment.unix(this.interval.time_end) : null
  15. },
  16. }],
  17. yAxes: [{
  18. gridLines: {
  19. lineWidth: 1,
  20. color: (this.$store.state.theme === 'dark') ? "rgba(56, 56, 61, 0.4)" : "rgba(221, 221, 221, 0.4)",
  21. drawBorder: false,
  22. zeroLineColor: (this.$store.state.theme === 'dark') ? "rgba(56, 56, 61, 1)" : "rgba(221, 221, 221, 1)",
  23. },
  24. ticks: {
  25. beginAtZero: true,
  26. }
  27. }]
  28. },
  29. tooltips: {
  30. enabled: false,
  31. mode: 'x',
  32. intersect: false,
  33. custom: this.customTooltip()
  34.  
  35. },
  36.  
  37. hover: {
  38. mode: 'x',
  39. intersect: false
  40. },
  41. zoom: {
  42. enabled: true,
  43. drag: true,
  44. mode: 'x',
  45. /*limits: {
  46. max: 10,
  47. min: 0.5
  48. }*/
  49. },
  50.  
  51. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement