$(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: [[1128124800000,0.772021],[1128211200000,0.772021],[1128297600000,0.772021],[1128384000000,0.764208],[1128470400000,0.764917],[1128556800000,0.764572],[1128643200000,0.773583],[1128729600000,0.777475],[1128816000000,0.777475],[1128902400000,0.777475],[1128988800000,0.775512],[1129075200000,0.773883],[1129161600000,0.777242],[1129248000000,0.774189],[1129334400000,0.773536],[1129420800000,0.773536],[1129507200000,0.773536],[1129593600000,0.776605],[1129680000000,0.770769],[1129766400000,0.773339],[1129852800000,0.77388],[1129939200000,0.778449],[1130025600000,0.778449],[1130112000000,0.778449],[1130198400000,0.770679],[1130284800000,0.774647],[1130371200000,0.778547],[1130457600000,0.784234],[1130544000000,0.784952],[1130630400000,0.784952],[1130716800000,0.784952]], 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: [[1128124800000, 0.772021],[1128124800000, 0.772021],[1128211200000, 0.772021],[1128297600000, 0.772021],[1128384000000, 0.764208],[1128470400000, 0.764917],[1128556800000, 0.764572],[1128643200000, 0.773583],[1128729600000, 0.777475],[1128816000000, 0.777475],[1128902400000, 0.777475],[1128988800000, 0.775512],[1129075200000, 0.773883],[1129161600000, 0.777242],[1129248000000, 0.774189],[1129334400000, 0.773536],[1129420800000, 0.773536],[1129507200000, 0.773536],[1129593600000, 0.776605],[1129680000000, 0.770769],[1129766400000, 0.773339],[1129852800000, 0.773880],[1129939200000, 0.778449],[1130025600000, 0.778449],[1130112000000, 0.778449],[1130198400000, 0.770679],[1130284800000, 0.774647],[1130371200000, 0.778547],[1130457600000, 0.784234],[1130544000000, 0.784952],[1130630400000, 0.784952],[1130716800000, 0.784952]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });