shahab kamali
shahab kamali

Reputation: 341

how do I rename tooltip of echart download icon

I am using echarts

How do I rename download button tooltip in corner of top-right(written in Chinese language)

I can't find in echart option.

Picture of my chart

Upvotes: 8

Views: 5263

Answers (2)

Amir Azizkhani
Amir Azizkhani

Reputation: 1804

In newer versions, it has changed to :

toolbox: {
    feature: {
        saveAsImage: {
           // Show the title when mouse focus
            title: 'Save As picture'
        }
    }
}

Upvotes: 2

Emerson
Emerson

Reputation: 343

You can use the title to rename the tooltip, for example:

toolbox: {
    show: true,
    feature: {
        downloadTable: {
            show: true,
            // Show the title when mouse focus
            title: 'Save As picture',
            // Icon path
            icon: '/static/img/download-icon.png',  
            option: {}
        }
    }
}

Upvotes: 9

Related Questions