$(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: [[1243814400000,1.00682],[1243900800000,1.02129],[1243987200000,1.01878],[1244073600000,1.00324],[1244160000000,0.992393],[1244246400000,0.98777],[1244332800000,0.98777],[1244419200000,0.98777],[1244505600000,0.98777],[1244592000000,0.983651],[1244678400000,1.00019],[1244764800000,0.984108],[1244851200000,0.991028],[1244937600000,0.991028],[1245024000000,0.991028],[1245110400000,0.972983],[1245196800000,0.973547],[1245283200000,0.968007],[1245369600000,0.966936],[1245456000000,0.96712],[1245542400000,0.96712],[1245628800000,0.96712],[1245715200000,0.951966],[1245801600000,0.958234],[1245888000000,0.969981],[1245974400000,0.96047],[1246060800000,0.981402],[1246147200000,0.981402],[1246233600000,0.981402],[1246320000000,0.981402]], 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: [[1243814400000, 1.006821],[1243814400000, 1.006821],[1243900800000, 1.021293],[1243987200000, 1.018778],[1244073600000, 1.003241],[1244160000000, 0.992393],[1244246400000, 0.987770],[1244332800000, 0.987770],[1244419200000, 0.987770],[1244505600000, 0.987770],[1244592000000, 0.983651],[1244678400000, 1.000188],[1244764800000, 0.984108],[1244851200000, 0.991028],[1244937600000, 0.991028],[1245024000000, 0.991028],[1245110400000, 0.972983],[1245196800000, 0.973547],[1245283200000, 0.968007],[1245369600000, 0.966936],[1245456000000, 0.967120],[1245542400000, 0.967120],[1245628800000, 0.967120],[1245715200000, 0.951966],[1245801600000, 0.958234],[1245888000000, 0.969981],[1245974400000, 0.960470],[1246060800000, 0.981402],[1246147200000, 0.981402],[1246233600000, 0.981402],[1246320000000, 0.981402]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });