[Chartjs]-Vuejs โ€“ Chartjs doesn't render my own options with api request

1๐Ÿ‘

i had the same problem with chart data in nuxt.js

add a key to your component and when you get the api response change the value of the key . Vue will re-render the component after this change

my component :

  <LineChartComponent :chart-data="datacollection" :height="400" :key="datacollection.key"></LineChartComponent>

Leave a comment