$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1427846400000,32.351],[1427932800000,32.3995],[1428019200000,32.5113],[1428105600000,32.2283],[1428192000000,32.2283],[1428278400000,32.2283],[1428364800000,32.6399],[1428451200000,32.5668],[1428537600000,32.6058],[1428624000000,32.3573],[1428710400000,31.363],[1428796800000,31.363],[1428883200000,31.363],[1428969600000,31.363],[1429056000000,31.4316],[1429142400000,29.8996],[1429228800000,29.6021],[1429315200000,29.1947],[1429401600000,29.1947],[1429488000000,29.1947],[1429574400000,30.7313],[1429660800000,30.7035],[1429747200000,31.1929],[1429833600000,31.1323],[1429920000000,31.1288],[1430006400000,31.1288],[1430092800000,31.1288],[1430179200000,31.7873],[1430265600000,31.0404],[1430352000000,29.4032]], 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: [[1427846400000, 32.350974],[1427846400000, 32.350974],[1427932800000, 32.399480],[1428019200000, 32.511325],[1428105600000, 32.228255],[1428192000000, 32.228255],[1428278400000, 32.228255],[1428364800000, 32.639932],[1428451200000, 32.566801],[1428537600000, 32.605829],[1428624000000, 32.357272],[1428710400000, 31.363037],[1428796800000, 31.363037],[1428883200000, 31.363037],[1428969600000, 31.363037],[1429056000000, 31.431595],[1429142400000, 29.899603],[1429228800000, 29.602090],[1429315200000, 29.194718],[1429401600000, 29.194718],[1429488000000, 29.194718],[1429574400000, 30.731312],[1429660800000, 30.703531],[1429747200000, 31.192884],[1429833600000, 31.132293],[1429920000000, 31.128776],[1430006400000, 31.128776],[1430092800000, 31.128776],[1430179200000, 31.787272],[1430265600000, 31.040376],[1430352000000, 29.403230]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });