ecomfe / vue-echarts

Vue.js component for Apache ECharts™.
https://vue-echarts.dev
MIT License
9.65k stars 1.48k forks source link

Is it feasible to use Vue 2 and Options API for Vue-Echarts 6? #699

Closed LumineLittlelight closed 1 year ago

LumineLittlelight commented 1 year ago

Confirmation

Details

Hi,

May I check is there any documentation guide on how to implement Vue-Echarts with Options API on Vue 2? Or we must use CompositionAPI when making the Vue component with Vue-Echarts inside?

Looking forward to your explanation. Thank you.

Justineo commented 1 year ago

*** Vue 2 support

  • If you are using version prior to vue@2.7.0, @vue/composition-api is required to be installed to use Vue-ECharts with Vue 2.

You can still use options API but Vue-ECharts itself relies on installing @vue/composition-api. We have example code in the README.