Options for exporting

Method Used

Parameters:
  • mixed $name: the option name for the loading. Can be a string or array. When used as array a key value pair should be defined, where the key is the name
  • mixed $mixvalue: a value option in case the name is a string

API Tags:
Return: instance
Access: public


Example:

... $chart = new jqChart(); $chart->setChartOptions(array("defaultSeriesType"=>"line","marginRight"=>130,"marginBottom"=>25)) // disable exporting ->setExporting(array("enabled"=>false)) ...

Option name Type Default
buttons exporting.buttons - object See below
Configuration options for the buttons associated with the exporting module. See detail
enabled boolean true
Whether to enable the exporting module.
filename string chart
The filename, without extension, to use for the exported chart.
type string image/png
Default MIME type for exporting if chart.exportChart() is called without specifying a type option. Possible values are image/png, image/jpeg, application/pdf and image/svg+xml.
url string http://trirand.com/jqcharts/
The URL for the server module converting the SVG string to an image format. By default this points to Trirand Inc free web service.
width number 800
The pixel width of charts exported to PNG or JPG.