Chart drawing.
Methods
-
(static) ConvertSVGtoBase64($SVGContainer) → {String}
-
Convert an SVG element to an SVG data URL.
Parameters:
Name Type Description $SVGContainerjQueryObject The element containing the SVG element. There should be no other content. Returns:
- The base64 data URL containing the SVG data with a proper XML header.- Type
- String
-
(static) ConvertSVGtoPNG($SVGContainer) → {String}
-
Convert an SVG element to a PNG data URL.
Parameters:
Name Type Description $SVGContainerjQueryObject The element containing the SVG element. There should be no other content. Returns:
- The base64 data URL containing the PNG data.- Type
- String
-
(static) Init(Type, RawData, Element, Options)
-
Initializes a chart.
Parameters:
Name Type Description TypeString Type of the chart, e.g. Bar, Line, StackedArea, etc. RawDataObject Raw JSON data. ElementDOMObject Selector of the (SVG) element to use. OptionsObject Additional options. Properties
Name Type Attributes Description HideLegendBoolean <optional>
Don't display the legend (optional). DurationBoolean <optional>
Transition duration in ms, default 0 (no transition). PreferencesKeyBoolean <optional>
Name of an agent preferences key save persistent D3 statistic settings to (currently used from the dashboard). PreferencesDataBoolean <optional>
Current value of the D3 statistic graph settings. -
(static) UpdatePreferences(PrefName, PrefValue)
-
Update chart preferences on server.
Parameters:
Name Type Description PrefNameString PrefValueArray