liuxu-xrl
{
                title: {
                    text: (chartData && chartData.echartName) || \'无标题\',
                    subtext: (chartData && chartData.subtext) || \'\',
                    subtextStyle: {
                        align:\'right\',
                        color:\'#aaa\',
                        fontSize: 12,
                        fontWeight: \'normal\'
                    }
                }, 
                tooltip: {},
                grid: {
                    left: \'3%\',
                    right: \'45px\',
                    top:\'90px\',
                    bottom: \'3%\',
                    containLabel: true
                }, 
                xAxis: (chartData && chartData.xAxis) || {
                    name:that.xname || \'\',
                    show:this.nox?false:true,
                    splitLine: {show: false},
                    // axisTick: {
                    //     show: false //去掉刻度线
                    // },
                    axisLine: { 
                        // 设置轴线的属性
                        lineStyle: {
                            color: \'#8e8e8e\', //
                            width: 1 // 这里是为了突出显示加上的
                        }
                    },
                    data: chartData && chartData.datas && chartData.datas.x, // [\'04/16\', \'04/21\', \'04/26\', \'05/01\', \'05/06\', \'05/11\', \'05/16\'],
                }, 
                yAxis: {
                    name: that.yname || \'\',
                    axisLine: {
                        // 设置轴线的属性
                        lineStyle: {
                            color: \'#8e8e8e\',
                            width: 1 // 这里是为了突出显示加上的
                        },
                        formatter: \'{value} %\'
                    }, 
                    splitLine: {
                        // 设置网格样式
                        show: false,
                    }
                },
                series: (chartData && chartData.series) || [
                    // 用于指定图标显示类型
                    {
                        // name: chartData && chartData.echartXName,
                        type: \'bar\',
 
                        data: chartData && chartData.datas && chartData.datas.y,
                        animationDelay: function (idx) {
                            return idx * 10;
                        },
                    }
                ], 
                animationEasing: \'elasticOut\',
                animationDelayUpdate: function (idx) {
                    return idx * 5;
                }
            };

分类:

技术点:

相关文章:

  • 2021-12-30
  • 2021-11-06
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
猜你喜欢
  • 2021-12-14
  • 2021-12-28
  • 2021-06-26
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案