6. MonarchChart Toolbar

The MonarchCharts toolbar allows quickly change style of chart elements (axis tittle, series,grid, legend and etc.), save and load stylesheets, revert changes without coding.

To enable the toolbar from your application :

1
2
3
4
5
6
7
8
9
10
11
12
m_chartPanel = new JChartPanel(m_chart);
 
// Enable chart toolbar control
m_chartPanel.enableChartObjectPropertiesEditor();
 
// Create styles loader
StyleLoader loader = new StyleLoader();
 
// Load styles from resource file 
loader.loadStyles(ToolBarStylesheetLoaderTest.class
   .getResourceAsStream("../resources/RedChartStyle.mchs"),
   m_chartPanel, null);

Notes