D
D
DPS_ninja2020-02-13 10:39:34
Vue.js
DPS_ninja, 2020-02-13 10:39:34

Vue-chart-js how to remove grid background?

Good afternoon, please tell me how to remove the background grid on the chart? I found only a way to transfer an array of colors and it will repaint in the right ones, but I think this is a bad option. Where to read about all properties?
Example

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Athanor, 2020-02-13
@DPS_ninja

Чтоб отключить сетку достаточно изменить значение

gridLines: {
  display: true
}

=>
gridLines: {
  display: false
}

demo
UPDATE
Где прочитать про все свойства?

vue-chart-js это адаптер библиотеки chart.js для vue, следовательно следует обратиться к документации chart.js конкретно про стили гридлайнов есть здесь

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question