public class Global extends Configurable<Global>
Highcharts.setOptions(
new Highcharts.Options().setGlobal(
new Global()
.setUseUTC(false)
));
| Constructor and Description |
|---|
Global() |
| Modifier and Type | Method and Description |
|---|---|
Global |
setCanvasToolsURL(String canvasToolsURL)
Convenience method for setting the 'canvasToolsURL' global option.
|
Global |
setUseUTC(boolean useUTC)
Convenience method for setting the 'useUTC' global option.
|
getOptions, setOptionpublic Global setCanvasToolsURL(String canvasToolsURL)
global.setOption("canvasToolsURL", "http://localhost/js/canvas-tools.js");
The URL to the additional file to lazy load for Android 2.x devices. These devices
don't support SVG, so we download a helper file that contains canvg, its dependency
rbcolor, and our own CanVG Renderer class. To avoid hot linking to the highcharts
web site, you can install canvas-tools.js on your own server and change this option
accordingly.
Defaults to "http://www.highcharts.com/js/canvas-tools.js".canvasToolsURL - URL of the canvas tools libraryGlobal instance for convenient method chaining.public Global setUseUTC(boolean useUTC)
global.setOption("useUTC", false);
Whether to use UTC time for axis scaling, tickmark placement and time display in
Highcharts.dateFormat. Advantages of using UTC is that the time displays equally
regardless of the user agent's time zone settings. Local time can be used when the
data is loaded in real time or when correct Daylight Saving Time transitions are
required. Defaults to true.useUTC - Flag to indicate whether time displays using UTC or notGlobal instance for convenient method chaining.Copyright © 2015. All Rights Reserved.