$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1475280000000,19.0011],[1475366400000,19.0011],[1475452800000,19.0011],[1475539200000,19.0033],[1475625600000,18.8811],[1475712000000,18.8966],[1475798400000,18.8459],[1475884800000,18.7903],[1475971200000,18.7903],[1476057600000,18.7903],[1476144000000,18.7932],[1476230400000,18.7479],[1476316800000,18.6613],[1476403200000,18.6369],[1476489600000,18.6369],[1476576000000,18.6369],[1476662400000,18.6369],[1476748800000,18.5632],[1476835200000,18.509],[1476921600000,18.5242],[1477008000000,18.5102],[1477094400000,18.4047],[1477180800000,18.4047],[1477267200000,18.4047],[1477353600000,18.4214],[1477440000000,18.3884],[1477526400000,18.4096],[1477612800000,18.3418],[1477699200000,18.2853],[1477785600000,18.2853],[1477872000000,18.2853]], 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: [[1475280000000, 19.001094],[1475280000000, 19.001094],[1475366400000, 19.001094],[1475452800000, 19.001094],[1475539200000, 19.003270],[1475625600000, 18.881074],[1475712000000, 18.896598],[1475798400000, 18.845927],[1475884800000, 18.790304],[1475971200000, 18.790304],[1476057600000, 18.790304],[1476144000000, 18.793193],[1476230400000, 18.747865],[1476316800000, 18.661256],[1476403200000, 18.636906],[1476489600000, 18.636906],[1476576000000, 18.636906],[1476662400000, 18.636906],[1476748800000, 18.563222],[1476835200000, 18.508982],[1476921600000, 18.524171],[1477008000000, 18.510215],[1477094400000, 18.404721],[1477180800000, 18.404721],[1477267200000, 18.404721],[1477353600000, 18.421431],[1477440000000, 18.388439],[1477526400000, 18.409620],[1477612800000, 18.341777],[1477699200000, 18.285296],[1477785600000, 18.285296],[1477872000000, 18.285296]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });