Revision history [back]

click to hide/show revision 1
initial version

answered 2017-10-24 19:38:45 +0800

cor3000 gravatar image cor3000

according to the highcharts documentation the "title" property of the export.chartOptions is another nested map, where the "text" key defines the String to be used as export title, while other keys like "align" allow different title settings.

If you change your code to this, you should see the title text in the exported chart:

Map chartOptions = new HashMap<String, Object>();
Map titleProps = Collections.singletonMap("text", "ABC");
chartOptions.put("title", titleProps);
getExporting().setChartOptions(chartOptions);

according to the related highcharts documentation documentation the "title" property of the export.chartOptions is another nested map, where the "text" key defines the String to be used as export title, while other keys like "align" allow different title settings.

If you change your code to this, you should see the title text in the exported chart:

Map chartOptions = new HashMap<String, Object>();
Map titleProps = Collections.singletonMap("text", "ABC");
chartOptions.put("title", titleProps);
getExporting().setChartOptions(chartOptions);
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More