$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1243814400000,1.20973],[1243900800000,1.22839],[1243987200000,1.23537],[1244073600000,1.21192],[1244160000000,1.20479],[1244246400000,1.20305],[1244332800000,1.20305],[1244419200000,1.20305],[1244505600000,1.20305],[1244592000000,1.19178],[1244678400000,1.21357],[1244764800000,1.1926],[1244851200000,1.19973],[1244937600000,1.19973],[1245024000000,1.19973],[1245110400000,1.18374],[1245196800000,1.18563],[1245283200000,1.18241],[1245369600000,1.19374],[1245456000000,1.1924],[1245542400000,1.1924],[1245628800000,1.1924],[1245715200000,1.17364],[1245801600000,1.16923],[1245888000000,1.18715],[1245974400000,1.17168],[1246060800000,1.18979],[1246147200000,1.18979],[1246233600000,1.18979],[1246320000000,1.18979]], 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.209727],[1243814400000, 1.209727],[1243900800000, 1.228392],[1243987200000, 1.235367],[1244073600000, 1.211919],[1244160000000, 1.204790],[1244246400000, 1.203054],[1244332800000, 1.203054],[1244419200000, 1.203054],[1244505600000, 1.203054],[1244592000000, 1.191781],[1244678400000, 1.213573],[1244764800000, 1.192599],[1244851200000, 1.199730],[1244937600000, 1.199730],[1245024000000, 1.199730],[1245110400000, 1.183739],[1245196800000, 1.185627],[1245283200000, 1.182406],[1245369600000, 1.193743],[1245456000000, 1.192396],[1245542400000, 1.192396],[1245628800000, 1.192396],[1245715200000, 1.173643],[1245801600000, 1.169227],[1245888000000, 1.187147],[1245974400000, 1.171676],[1246060800000, 1.189787],[1246147200000, 1.189787],[1246233600000, 1.189787],[1246320000000, 1.189787]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });