$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1475280000000,3.00885],[1475366400000,3.00885],[1475452800000,3.00885],[1475539200000,3.03601],[1475625600000,3.00685],[1475712000000,3.01627],[1475798400000,3.00631],[1475884800000,2.98819],[1475971200000,2.98819],[1476057600000,2.98819],[1476144000000,2.9832],[1476230400000,2.94304],[1476316800000,2.92235],[1476403200000,2.92383],[1476489600000,2.92383],[1476576000000,2.92383],[1476662400000,2.92383],[1476748800000,2.92143],[1476835200000,2.90764],[1476921600000,2.9087],[1477008000000,2.90834],[1477094400000,2.88264],[1477180800000,2.88264],[1477267200000,2.88264],[1477353600000,2.87739],[1477440000000,2.86347],[1477526400000,2.87031],[1477612800000,2.84255],[1477699200000,2.82363],[1477785600000,2.82363],[1477872000000,2.82363]], 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, 3.008852],[1475280000000, 3.008852],[1475366400000, 3.008852],[1475452800000, 3.008852],[1475539200000, 3.036007],[1475625600000, 3.006851],[1475712000000, 3.016271],[1475798400000, 3.006309],[1475884800000, 2.988192],[1475971200000, 2.988192],[1476057600000, 2.988192],[1476144000000, 2.983204],[1476230400000, 2.943044],[1476316800000, 2.922353],[1476403200000, 2.923830],[1476489600000, 2.923830],[1476576000000, 2.923830],[1476662400000, 2.923830],[1476748800000, 2.921429],[1476835200000, 2.907641],[1476921600000, 2.908704],[1477008000000, 2.908339],[1477094400000, 2.882640],[1477180800000, 2.882640],[1477267200000, 2.882640],[1477353600000, 2.877388],[1477440000000, 2.863472],[1477526400000, 2.870311],[1477612800000, 2.842555],[1477699200000, 2.823634],[1477785600000, 2.823634],[1477872000000, 2.823634]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });