just can"t show it. Thank you very much for your advice.
just can"t show it. Thank you very much for your advice.
copy a simple bar chart and test it in the previous document. It feels like there is something wrong with the definition of series data, and the introduction of components requires you to manually import gauge,. Anyway, everything you use should be written here, otherwise it will not display
var echarts = require ('echarts/lib/echarts');
/ / introduce bar chart
require (' echarts/lib/chart/bar');
require ('echarts/lib/chart/gauge').
/ introduce prompt box and title component
require ('echarts/lib/component/tooltip');
require (' echarts/lib/component/title');
require ('echarts/lib/component/legend');
you need to use a version packaged into components. There are many on Github. Post two for your reference:
does this div have height?
the echarts library you introduced in main.js, but used in other components, certainly won't work.
two methods:
// component
let myChart = this.$echarts.init(this.$refs.myChart)
Previous: There has been a circular redirection when developing Wechat's official account. What's going on?
cannot be rendered using echarts in vue <template> <div id="app" class="login_area"> <div id="myChart" class="echarts">< div> < div> < template> <script> expor...
I am a chart project developed by vue scaffolding, and now I need to change the position separately because the label and Abscissa of the column chart overlap. ask the boss for an answer. as shown in the figure, the first two histograms are normal...
problem description A novice asks for advice. Echarts is used as a line chart in Vue. The data is transmitted from the background Ajax, but the data is not displayed at all. How is this going on? the environmental background of the problems and what...
because every chart is the same, you want to use v-for to loop the echart chart Code of the loop <el-col :span="6" v-for="(item,index) of items" :key="item.id"> <div class="body"> <d...
import echarts from echarts import echartsLiquidfill from echarts-liquidfill import liquidfill from echarts-liquidfill export function full_health (element_id) { var full_health = echarts.init(document.getElementById(element_id)); let op...
echart s line chart hover to the inflection point does not show the small palm? What is added to the Option object? ...
I am using vue+echart, and the chart for echart operation is encapsulated in a component of vue. when leaving this component, because DOM is replaced, the referenced diagram naturally becomes null: Cannot read property getAttribute of null the ...