Closed fonsecas72 closed 2 years ago
@Yopadd Any word on this? Would love to hear if we can use plugins or not....
It's possible to use plugins with vue-chartist.
There is an example, how to use chartist-plugin-legend:
npm install chartist-plugin-legend --save
.plugins
section to Chartist options in your Vue component:
import Legend from 'chartist-plugin-legend';
export default { data() { return { [...], chartOptions: { axisX: {...}, axisY: {...}, plugins: [ Legend({ position: 'top', }), ], }, }, }, }
3. Add plugin styles (optional, check plugin readme).
I'm having some trouble about using plugins and despite I've found some issues about it I couldn't use any.
I think it would be very useful if this was clear in the README even if it is just to say "you can't use plugins"
Thank you for your work.