Exporting - ChartOptions

Oct 22, 2013 at 4:20 PM
Edited Oct 22, 2013 at 5:26 PM
Can someone give me an example of how to set the chart options property of the Exporting object? I would like to add a new title to the chart when printing.

tried this:

.SetExporting(
                  new Exporting
                  {
                     Enabled = true,
                     ChartOptions =
                           new Highcharts("chart").SetTitle(new Title
                                {
                                      Text = "Main Title"
                                 }).GetOptions()
                      });
and this:

.SetExporting( new Exporting { Enabled = true, ChartOptions = "{title: {text:'Main Title'}}" });
Coordinator
Oct 24, 2013 at 10:32 AM
Hi,

Try with this:
.SetExporting(new Exporting
                {
                    Enabled = true,
                    ChartOptions = new { title = new { text = "Main Title" } }
                })
Regards,
Vangi
May 13, 2015 at 9:13 AM
Hi Vangi,

This work for me for export but can not view the changes in print page. Please suggest.

Regards,
Sushil