代码之家  ›  专栏  ›  技术社区  ›  Diego Vinícius

echarts:渲染画布时如何在“下载”按钮中删除日文字符

  •  2
  • Diego Vinícius  · 技术社区  · 7 年前

    我以前做过一些研究,但没有得到任何运气,我试图删除那些日文字符。

    我查看了所有选项,但到目前为止没有运气 enter image description here

    我看了所有的选择,但到目前为止没有运气。

    1 回复  |  直到 7 年前
        1
  •  2
  •   Clocher Zhong    7 年前

    Echarts支持自定义 toolbox feature title 选项更改中的字符

    toolbox.feature.saveAsImage 
    

    例如:

    option = {
        toolbox: {
            show: true,
            feature: {
                saveAsImage: {
                    title: 'save As Image'
                },
                restore: {
                    title: 'restore'
                }
            }
        },
        ...
        title: {},
        xAxis: [],
        ..
    }
    

    顺便说一句,不是日文,是汉字。
    “”表示“另存为图像”