Need a special offer?Find out if your project fits.
+

Toolbar icon for charts

Answered
Jesper Bo Rasmussen asked on November 21, 2019

Hi
We only show one chart option and that is the Pie Chart. We have removed the other options using javascript.
Is it possible to disable the contextmenu and just show the Pie chart icon, or at least show the Pie icon instead of the column chart icon.

Thanks,
Jesper

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 22, 2019

Hello, Jesper,
 
Thank you for reaching out to us.
 
You can find out how to customize the toolbar by following the link below: https://www.flexmonster.com/doc/customizing-toolbar/.
 
In your case, we recommend using the code below:

function customizeToolbar(toolbar) { 
var tabs = toolbar.getTabs();
toolbar.getTabs = function() {  
tabs[6] = {   
id: "fm-tab-charts-pie",   
args: "pie",   
title: toolbar.Labels.charts_pie,   
handler: toolbar.chartsHandler,   
icon: this.icons.charts_pie  
}; 
return tabs;
}
}

 
Please, let us know if that has helped you.
 
Kind Regards,
Illia

Please login or Register to Submit Answer