$(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: [[1480550400000,0.074855],[1480636800000,0.075088],[1480723200000,0.077146],[1480809600000,0.077146],[1480896000000,0.077146],[1480982400000,0.078114],[1481068800000,0.077761],[1481155200000,0.077388],[1481241600000,0.076958],[1481328000000,0.077411],[1481414400000,0.077411],[1481500800000,0.077411],[1481587200000,0.079038],[1481673600000,0.07906],[1481760000000,0.079419],[1481846400000,0.078531],[1481932800000,0.078631],[1482019200000,0.078631],[1482105600000,0.078631],[1482192000000,0.078822],[1482278400000,0.079066],[1482364800000,0.079391],[1482451200000,0.079153],[1482537600000,0.07986],[1482624000000,0.07986],[1482710400000,0.07986],[1482796800000,0.079204],[1482883200000,0.079204],[1482969600000,0.080855],[1483056000000,0.081586],[1483142400000,0.081586]], 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: [[1480550400000, 0.074855],[1480550400000, 0.074855],[1480636800000, 0.075088],[1480723200000, 0.077146],[1480809600000, 0.077146],[1480896000000, 0.077146],[1480982400000, 0.078114],[1481068800000, 0.077761],[1481155200000, 0.077388],[1481241600000, 0.076958],[1481328000000, 0.077411],[1481414400000, 0.077411],[1481500800000, 0.077411],[1481587200000, 0.079038],[1481673600000, 0.079060],[1481760000000, 0.079419],[1481846400000, 0.078531],[1481932800000, 0.078631],[1482019200000, 0.078631],[1482105600000, 0.078631],[1482192000000, 0.078822],[1482278400000, 0.079066],[1482364800000, 0.079391],[1482451200000, 0.079153],[1482537600000, 0.079860],[1482624000000, 0.079860],[1482710400000, 0.079860],[1482796800000, 0.079204],[1482883200000, 0.079204],[1482969600000, 0.080855],[1483056000000, 0.081586],[1483142400000, 0.081586]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });