anychart.onDocumentReady(function () {
var chart = anychart.ohlc([
{x: new Date('28-Aug-07'), open: 511.53, high: 514.98, low: 505.79, close: 506.40},
{x: new Date('29-Aug-07'), open: 507.84, high: 513.30, low: 507.23, close: 512.88},
{x: new Date('30-Aug-07'), open: 512.36, high: 515.40, low: 510.58, close: 511.40},
{x: new Date('31-Aug-07'), open: 513.10, high: 516.50, low: 511.47, close: 515.25},
{x: new Date('01-Sep-07'), open: 515.02, high: 528.00, low: 514.62, close: 525.15}
var scale = chart.xScale();
scale.alignMinimum(true);
scale.alignMaximum(true);
chart.xAxis({ticks: true});
chart.container('container');
var ticks = scale.ticks();
var getIntervalUnit = ticks.getIntervalUnit();
chart.title('Interval unit is the ' + getIntervalUnit);