vue3-echarts Echarts binding for Vue 3
Echarts binding for Vue 3
Install
yarn add vue3-echarts
Register it in components
of Vue options
import { VueEcharts } from 'vue3-echarts';
export default {
data,
methods,
...
components: {
VueEcharts,
},
}
Use the component in template
<vue-echarts :option="option" style="height: 500px" ref="chart" />
prop option
is required
(this.$refs.chart as VueEcharts).refreshOption();
Note: vue-echarts
has no height by default. You need to specify it manually. DOM size change is detected automatically using ResizeObserver
, no manual resize
call needed.
Type: object
Echarts option. Documents can be found here: https://echarts.apache.org/en/option.html#title. If null
, loading
animation will be shown
Type: string
Default: default
Theme used, should be pre-registered using echarts.registerTheme
Type: number
Group name to be used in chart connection
Config used by showLoading.
Loading animation will be shown automatically when option
is null or an empty object.
Other configuration used by echarts.init
Refresh option using setOption
. If option
is null or an empty object, loading
animation will be shown. See loadingOption
Recreate echarts instance
Alias of echartsInstance.setOption
Alias of echartsInstance.dispatchAction
All echarts events are supported. Doc can be found here: https://echarts.apache.org/en/api.html#events
Author: CarterLi
Source Code: https://github.com/CarterLi/vue3-echarts
In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.
Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get
In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.
There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.
Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.