$(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: [[1391212800000,1.26934],[1391299200000,1.26934],[1391385600000,1.26934],[1391472000000,1.27642],[1391558400000,1.26828],[1391644800000,1.27984],[1391731200000,1.39898],[1391817600000,1.37615],[1391904000000,1.37615],[1391990400000,1.37615],[1392076800000,1.39565],[1392163200000,1.39746],[1392249600000,1.39293],[1392336000000,1.41579],[1392422400000,1.41754],[1392508800000,1.41754],[1392595200000,1.41754],[1392681600000,1.42354],[1392768000000,1.4297],[1392854400000,1.45162],[1392940800000,1.44853],[1393027200000,1.46424],[1393113600000,1.46424],[1393200000000,1.46424],[1393286400000,1.49955],[1393372800000,1.5644],[1393459200000,1.57268],[1393545600000,1.64831]], 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: [[1391212800000, 1.269338],[1391212800000, 1.269338],[1391299200000, 1.269338],[1391385600000, 1.269338],[1391472000000, 1.276421],[1391558400000, 1.268279],[1391644800000, 1.279844],[1391731200000, 1.398982],[1391817600000, 1.376151],[1391904000000, 1.376151],[1391990400000, 1.376151],[1392076800000, 1.395651],[1392163200000, 1.397459],[1392249600000, 1.392927],[1392336000000, 1.415793],[1392422400000, 1.417538],[1392508800000, 1.417538],[1392595200000, 1.417538],[1392681600000, 1.423543],[1392768000000, 1.429699],[1392854400000, 1.451615],[1392940800000, 1.448534],[1393027200000, 1.464242],[1393113600000, 1.464242],[1393200000000, 1.464242],[1393286400000, 1.499551],[1393372800000, 1.564401],[1393459200000, 1.572682],[1393545600000, 1.648310]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });