Reputation: 2616
I've been learning how to use ECharts lately, and couldn't figure out how in this example, they have buttons (like this ) on the top right that allow user to download the graph as a screenshot and see the background data.
In some other examples like this, there's no such button, so I'm assuming it's part of ECharts features.
Could anyone, familiar with ECharts, please help explain how to turn those options on? Thank you in advanced for your answers!
Upvotes: 3
Views: 4136
Reputation: 2616
Just by browsing around more in these examples, I believe this is what turns on the 'Save As Image', 'Show Data' options (an example usage).
toolbox: {
show : true,
feature : {
mark : {show: true},
dataView : {show: true, readOnly: false},
magicType: {show: true, type: ['line', 'bar']},
restore : {show: true},
saveAsImage : {show: true}
}
},
If anyone has more comprehensive explanation as to what features are available and how to use them, I'd love to learn more and accept it as an answer. Thanks in advance!
Upvotes: 2