let loadingFunnel = () => {
//title标示文字,标示线
loadingFunnel.title = (text, top, left, color, fontStyle, fontFamily, fontSize) => {
return {
text: text,
top: top,
left: left,
textStyle:{
color: color,
fontStyle: fontStyle,
fontFamily: fontFamily,
fontSize: fontSize,
}
}
};
loadingFunnel.arrData = [20, 40, 60, 80, 100];
var myChart = echarts.init(document.getElementById("chart1"));
option = {
title: [
loadingFunnel.title('指标二', '25%', '21%', '#d1ecff', 'normal', 'sans-serif', '14'),
loadingFunnel.title('40', '32%', '21%', '#EFC302', 'normal', 'Digital', '20'),
loadingFunnel.title('指标一', '18%', '52%', '#d1ecff', 'normal', 'sans-serif', '14'),
loadingFunnel.title('20', '24%', '55%', '#A5E104', 'normal', 'Digital', '20'),
loadingFunnel.title('指标四', '43%', '16%', '#d1ecff', 'normal', 'sans-serif', '14'),
loadingFunnel.title('80', '50%', '16%', '#0FE6BE', 'normal', 'Digital', '20'),
loadingFunnel.title('指标三',
3D 漏斗图 锥形图表echarts
最新推荐文章于 2024-07-02 10:45:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)