$(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: [[1241136000000,0.956063],[1241222400000,0.956063],[1241308800000,null],[1241395200000,0.956063],[1241481600000,0.956063],[1241568000000,0.974856],[1241654400000,0.966272],[1241740800000,0.984094],[1241827200000,0.980043],[1241913600000,0.980043],[1242000000000,0.980043],[1242086400000,0.980043],[1242172800000,0.986181],[1242259200000,0.975152],[1242345600000,0.959962],[1242432000000,0.968634],[1242518400000,0.968634],[1242604800000,0.968634],[1242691200000,0.96977],[1242777600000,0.990729],[1242864000000,0.993799],[1242950400000,1.00388],[1243036800000,1.01537],[1243123200000,1.01537],[1243209600000,1.01537],[1243296000000,1.01888],[1243382400000,1.00398],[1243468800000,0.994103],[1243555200000,0.983355],[1243641600000,1.00682],[1243728000000,1.00682]], 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: [[1241136000000, 0.956063],[1241136000000, 0.956063],[1241222400000, 0.956063],[1241395200000, 0.956063],[1241481600000, 0.956063],[1241568000000, 0.974856],[1241654400000, 0.966272],[1241740800000, 0.984094],[1241827200000, 0.980043],[1241913600000, 0.980043],[1242000000000, 0.980043],[1242086400000, 0.980043],[1242172800000, 0.986181],[1242259200000, 0.975152],[1242345600000, 0.959962],[1242432000000, 0.968634],[1242518400000, 0.968634],[1242604800000, 0.968634],[1242691200000, 0.969770],[1242777600000, 0.990729],[1242864000000, 0.993799],[1242950400000, 1.003879],[1243036800000, 1.015370],[1243123200000, 1.015370],[1243209600000, 1.015370],[1243296000000, 1.018882],[1243382400000, 1.003980],[1243468800000, 0.994103],[1243555200000, 0.983355],[1243641600000, 1.006821],[1243728000000, 1.006821]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });