echarts图例翻页

1.

      onezqChart: {

        title: {},

        tooltip: {

          trigger: "axis",

          axisPointer: {

            type: "cross",

            label: {

              backgroundColor: "#778899",

            },

          },

        },

        legend: {

          data: ["烟花爆竹", "非煤矿山"],

          left: "5%",

          top: "15%",

          type: "scroll",   【重点】

          textStyle: {

            color: "#1FC3CE",

            fontSize: 14,

          },

        },

        // 右上角配置

        toolbox: {

          feature: {

            saveAsImage: {},

          },

        },

        grid: {

          left: "3%",

          right: "4%",

          bottom: "3%",

          containLabel: true,

        },

        // 横坐标

        xAxis: [

          {

            type: "category",

            data: ["城关区", "昌都市", "拉萨市", "林芝市", "山南市", "那曲市"],

            axisLabel: {

              interval: 0,

            },

          },

        ],

        yAxis: [

          {

            type: "value",

          },

        ],

        series: [

          {

            name: "烟花爆竹",

            type: "bar",

            stack: "total",

            data: [320, 302],

          },

          {

            name: "非煤矿山",

            type: "bar",

            stack: "total",

            label: {

              show: true,

            },

            emphasis: {

              focus: "series",

            },

            data: [120, 132],

          },

          // {

          //   name: "区域风险统计",

          //   type: "bar",

          //   areaStyle: {},

          //   emphasis: {

          //     focus: "series",

          //   },

          //   data: [1, 2, 3],

          // },

        ],

      },


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部