Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 255
shahab kamali Avatar asked Feb 14 '17 08:02

shahab kamali


2 Answers

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: {}
        }
    }
}
like image 126
Emerson Avatar answered Nov 14 '22 21:11

Emerson


in earlier version it changed to :

toolbox: {
    feature: {
        saveAsImage: {
           // Show the title when mouse focus
            title: 'Save As picture'
        }
    }
}
like image 1
amir azizkhani Avatar answered Nov 14 '22 20:11

amir azizkhani