
eCharts
lannieZ
这个作者很懒,什么都没留下…
展开
-
echarts的3D圆形柱状图
eCharts的3D圆形柱状图原创 2022-10-09 14:12:08 · 1278 阅读 · 0 评论 -
Echarts不显示X轴Y轴网格线
option = { xAxis: { show: false, //不显示坐标轴线、坐标轴刻度线和坐标轴上的文字 axisTick:{ show: false //不显示坐标轴刻度线 }, axisLine: { show: false, //不显示坐标轴线 }, axisLabel: { show: false, //不显示坐标轴原创 2021-06-09 09:24:33 · 11134 阅读 · 0 评论 -
There is a chart instance already initialized on the dom
使用Echarts插件的时候,多次加载会出现There is a chart instance already initialized on the dom.的警告,意思是DOM上已经初始化了一个图表实例。解决方法:mounted() { this.timer = setInterval(() => { this.getBar() }, 1800000)},methods: { getBar() { if (this.echartsPie != null &am原创 2021-03-29 14:03:08 · 213 阅读 · 0 评论 -
vue通过监听浏览器窗口的变化让echarts自适应浏览器
data() { clientWidth: document.body.clientWidth},watch: { flashMin(val, oldVal) { console.log(val, oldVal) if (val) { this.timer1 = setInterval(() => { this.socialSecurityParticipationRatio() }, val)原创 2021-03-19 11:00:31 · 801 阅读 · 3 评论 -
Echarts设置selected默认第一个为true其他为false
legend: { data: [] orient: "horizontal", //垂直显示还是水平显示 right: 60, //legend相对位置 top: 0, //legend相对位置 textStyle: { fontSize: "14", color:'#fff' }, //legend字体大小 selected: {}},// 设置selected默认第一个为truevar原创 2021-03-17 09:50:20 · 1401 阅读 · 1 评论 -
vue+echarts 实现进度条式柱状图
效果图如下<template> <div class="content-page"> <div class="tab-content"> <div id="myChart1"></div> </div> </div></template><script>import * as echarts from 'echarts';export default原创 2021-03-15 10:30:28 · 1071 阅读 · 0 评论 -
vue中echarts饼图实现循环高亮效果
<div id="main"></div>data() { return { mTime: null, echartsPie: "", typeProportionList: [] }}mounted() { this.getList()}methods: {getList() { getList() .then(res => { if (res.原创 2021-03-05 11:46:26 · 789 阅读 · 0 评论 -
eCharts 图表自定义提示框
tooltip: { trigger: 'axis', formatter : function(params){ // console.log(params); //打印,会看到自己想要的后台数据 var res = params[0].name +...原创 2020-04-02 14:01:48 · 765 阅读 · 0 评论 -
eCharts双y轴折线图
yAxis: [ { type: 'value', axisLabel: { axisLine:{ show: true ...原创 2020-04-02 13:56:47 · 3319 阅读 · 1 评论 -
eCharts柱状图修改它的宽度
series: [{ data: [120, 200, 150, 80, 70], type: 'bar', barWidth: '25%',}]原创 2020-03-27 15:40:35 · 21755 阅读 · 0 评论 -
eCharts改变饼图的默认颜色
series: [ data: [ {value: 880, name: '已签约', itemStyle: { color: '#00FFD0' }}, {value: 120, name: '未签约', itemStyle: { color: '#7073FB' }} ]]原创 2020-03-27 15:23:25 · 3405 阅读 · 0 评论 -
echarts的图表自适应浏览器
常见方法:window.onresize = myChart.resize。示例var myChart = echarts.init(document.getElementById(‘main’));// 指定图表的配置项和数据var option = {title: {text: ‘标题’},tooltip: {},legend: {data:[‘xx’]},xAxis...原创 2019-09-27 15:26:41 · 314 阅读 · 0 评论