Welcome to theHighcharts JSOptions Reference

These pages outline the chart configuration options, and the methods and properties of Highcharts objects.

Feel free to search thisAPIthrough the search bar or the navigation tree in the sidebar.

time

Time options that can apply globally or to individual charts. These settings affect howdatetimeaxes are laid out, how tooltips are formatted, how seriespointIntervalUnitworks and how the Highstock range selector handles time.

The common use case is that all charts in the same Highcharts object share the same time settings, in which case the global settings are set usingsetOptions.

// Apply time settings globally
Highcharts.setOptions({
    time: {
        timezone: 'Europe/London'
    }
});
// Apply time settings by instance
var chart = Highcharts.chart('container', {
    time: {
        timezone: 'America/New_York'
    },
    series: [{
        data: [1, 4, 3, 5]
    }]
});

// Use the Time object
console.log(
       'Current time in New York',
       chart.time.dateFormat('%Y-%m-%d %H:%M:%S', Date.now())
);

Since v6.0.5, the time options were moved from theglobalobect to thetimeobject, and time options can be set on each individual chart.