initChart() {
var myChart = echarts.init(document.getElementById('lineChart'));
this.chart = echarts.init(this.$el, 'macarons')
this.chart.setOption({
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true,
},
tooltip: {
trigger: 'axis',
formatter: (comp, value) => {
const [serie] = comp;
return `${serie.name}: ${serie.value}`;
},
axisPointer: {
show: true,
status: 'shadow',
z: -1,
shadowStyle: {
color: '#e6f7ff',
},
type: 'shadow',
},
},
xAxis: {
type: 'cate
vue echarts 柱状图因高度太低难以点击
最新推荐文章于 2024-12-23 13:40:12 发布
本文介绍在使用Vue集成ECharts时遇到的一个问题:当柱状图高度较低时,导致柱子过于细小,从而难以精确点击。我们将探讨如何优化这种情况,提供解决方案,确保在视觉效果和交互体验之间找到平衡。

最低0.47元/天 解锁文章
8117

被折叠的 条评论
为什么被折叠?



