$(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: [[1359676800000,1.25462],[1359763200000,1.26777],[1359849600000,1.26777],[1359936000000,1.26777],[1360022400000,1.26215],[1360108800000,1.26356],[1360195200000,1.25783],[1360281600000,1.25405],[1360368000000,1.24373],[1360454400000,1.24373],[1360540800000,1.24373],[1360627200000,1.24815],[1360713600000,1.25331],[1360800000000,1.27106],[1360886400000,1.26074],[1360972800000,1.25958],[1361059200000,1.25958],[1361145600000,1.25958],[1361232000000,1.26153],[1361318400000,1.26296],[1361404800000,1.26774],[1361491200000,1.24559],[1361577600000,1.24622],[1361664000000,1.24622],[1361750400000,1.24622],[1361836800000,1.25488],[1361923200000,1.2356],[1362009600000,1.24104]], 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: [[1359676800000, 1.254621],[1359676800000, 1.254621],[1359763200000, 1.267774],[1359849600000, 1.267774],[1359936000000, 1.267774],[1360022400000, 1.262146],[1360108800000, 1.263561],[1360195200000, 1.257831],[1360281600000, 1.254047],[1360368000000, 1.243728],[1360454400000, 1.243728],[1360540800000, 1.243728],[1360627200000, 1.248155],[1360713600000, 1.253310],[1360800000000, 1.271065],[1360886400000, 1.260743],[1360972800000, 1.259585],[1361059200000, 1.259585],[1361145600000, 1.259585],[1361232000000, 1.261526],[1361318400000, 1.262959],[1361404800000, 1.267737],[1361491200000, 1.245591],[1361577600000, 1.246224],[1361664000000, 1.246224],[1361750400000, 1.246224],[1361836800000, 1.254884],[1361923200000, 1.235601],[1362009600000, 1.241041]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });