$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс KZT, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс KZT', data: [[1509494400000,0.080255],[1509580800000,0.080201],[1509667200000,0.080356],[1509753600000,0.080702],[1509840000000,0.080702],[1509926400000,0.080702],[1510012800000,0.080265],[1510099200000,0.080358],[1510185600000,0.079807],[1510272000000,0.079758],[1510358400000,0.079733],[1510444800000,0.079733],[1510531200000,0.079733],[1510617600000,0.079606],[1510704000000,0.079602],[1510790400000,0.079593],[1510876800000,0.079657],[1510963200000,0.079766],[1511049600000,0.079766],[1511136000000,0.079766],[1511222400000,0.079991],[1511308800000,0.080209],[1511395200000,0.080696],[1511481600000,0.081398],[1511568000000,0.08146],[1511654400000,0.08146],[1511740800000,0.08146],[1511827200000,0.081159],[1511913600000,0.081061],[1512000000000,0.081463]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1509494400000, 0.080255],[1509494400000, 0.080255],[1509580800000, 0.080201],[1509667200000, 0.080356],[1509753600000, 0.080702],[1509840000000, 0.080702],[1509926400000, 0.080702],[1510012800000, 0.080265],[1510099200000, 0.080358],[1510185600000, 0.079807],[1510272000000, 0.079758],[1510358400000, 0.079733],[1510444800000, 0.079733],[1510531200000, 0.079733],[1510617600000, 0.079606],[1510704000000, 0.079602],[1510790400000, 0.079593],[1510876800000, 0.079657],[1510963200000, 0.079766],[1511049600000, 0.079766],[1511136000000, 0.079766],[1511222400000, 0.079991],[1511308800000, 0.080209],[1511395200000, 0.080696],[1511481600000, 0.081398],[1511568000000, 0.081460],[1511654400000, 0.081460],[1511740800000, 0.081460],[1511827200000, 0.081159],[1511913600000, 0.081061],[1512000000000, 0.081463]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });