$(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: [[1349049600000,1.2231],[1349136000000,1.21474],[1349222400000,1.21123],[1349308800000,1.19807],[1349395200000,1.20231],[1349481600000,1.21226],[1349568000000,1.21226],[1349654400000,1.21226],[1349740800000,1.20354],[1349827200000,1.20224],[1349913600000,1.19698],[1350000000000,1.19193],[1350086400000,1.19393],[1350172800000,1.19393],[1350259200000,1.19393],[1350345600000,1.19732],[1350432000000,1.20867],[1350518400000,1.21113],[1350604800000,1.22144],[1350691200000,1.2155],[1350777600000,1.2155],[1350864000000,1.2155],[1350950400000,1.21517],[1351036800000,1.20627],[1351123200000,1.1951],[1351209600000,1.19532],[1351296000000,1.1896],[1351382400000,1.1896],[1351468800000,1.1896],[1351555200000,1.19572],[1351641600000,1.20254]], 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: [[1349049600000, 1.223100],[1349049600000, 1.223100],[1349136000000, 1.214737],[1349222400000, 1.211231],[1349308800000, 1.198068],[1349395200000, 1.202306],[1349481600000, 1.212264],[1349568000000, 1.212264],[1349654400000, 1.212264],[1349740800000, 1.203543],[1349827200000, 1.202240],[1349913600000, 1.196981],[1350000000000, 1.191933],[1350086400000, 1.193933],[1350172800000, 1.193933],[1350259200000, 1.193933],[1350345600000, 1.197321],[1350432000000, 1.208669],[1350518400000, 1.211131],[1350604800000, 1.221441],[1350691200000, 1.215497],[1350777600000, 1.215497],[1350864000000, 1.215497],[1350950400000, 1.215173],[1351036800000, 1.206268],[1351123200000, 1.195099],[1351209600000, 1.195321],[1351296000000, 1.189596],[1351382400000, 1.189596],[1351468800000, 1.189596],[1351555200000, 1.195719],[1351641600000, 1.202545]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });