Hi!
You need to redefine toolbar items.
These items are for FacetChart. For TimeChart uncomment rest of the items.
toolbar: {
items: [
{ item: "back", align: "left", onClick: function() { alert("Back button clicked") }},
{ item: "zoomOut", align: "left" },
//{ item: "logScale", align: "right" },
//{ item: "displayPeriod", align: "right" },
//{ item: "displayUnit", align: "right" },
{ item: "export", align: "right" },
{ item: "fullscreen", align: "right" , onClick: function() { alert("Fullscreen button clicked") } }
],
fullscreen: true
}
example:
https://jsfiddle.net/k7z8xa2e/
If you need to know if chart is in fullscreen mode or not, please take a look at this setter/getter API method - https://zoomcharts.com/developers/en/facet-chart/api-reference/api.html#fullscreen
var is_fullscreen = chart.fullscreen();
Eizens