echarts When back or zoom is not used

wd2eg0qa  于 2022-12-31  发布在  Echarts
关注(0)|答案(1)|浏览(122)

What problem does this feature solve?

I want to use only one dataZoom(back or zoom).

how to use that?

When operated with show's boolean, both icons appear or both disappear.

I want to use only one of dataZoom's zoom and back.

What does the proposed API look like?

`toolbox:{

feature: {
    dataZoom: {
          title: {
          zoom: "" //i don't wanna use that(zoom) 
          back: "Zoom Out" //i wanna use back.
          },
  },
}

}`

bvhaajcl

bvhaajcl1#

You can use custom toolbar to make a custom button and handle the click event by calling setOption and update the zoom.

相关问题