Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options: {
- zoomEnabled: true,
- responsive: true,
- maintainAspectRatio: false,
- legend: false,
- scales: {
- xAxes: [{
- display: false,
- type: "time",
- time: {
- unit: 'minute',
- tooltipFormat: "DD MMM LTS",
- // min: (this.interval.time_start) ? this.$moment.unix(this.interval.time_start) : this.$moment(),
- // max: (this.interval.time_end) ? this.$moment.unix(this.interval.time_end) : null
- },
- }],
- yAxes: [{
- gridLines: {
- lineWidth: 1,
- color: (this.$store.state.theme === 'dark') ? "rgba(56, 56, 61, 0.4)" : "rgba(221, 221, 221, 0.4)",
- drawBorder: false,
- zeroLineColor: (this.$store.state.theme === 'dark') ? "rgba(56, 56, 61, 1)" : "rgba(221, 221, 221, 1)",
- },
- ticks: {
- beginAtZero: true,
- }
- }]
- },
- tooltips: {
- enabled: false,
- mode: 'x',
- intersect: false,
- custom: this.customTooltip()
- },
- hover: {
- mode: 'x',
- intersect: false
- },
- zoom: {
- enabled: true,
- drag: true,
- mode: 'x',
- /*limits: {
- max: 10,
- min: 0.5
- }*/
- },
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement