$(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: [[1254355200000,1.38537],[1254441600000,1.37876],[1254528000000,1.37849],[1254614400000,1.37849],[1254700800000,1.37849],[1254787200000,1.38615],[1254873600000,1.40636],[1254960000000,1.40721],[1255046400000,1.41563],[1255132800000,1.42304],[1255219200000,1.42304],[1255305600000,1.42304],[1255392000000,1.42021],[1255478400000,1.42896],[1255564800000,1.43672],[1255651200000,1.42309],[1255737600000,1.41923],[1255824000000,1.41923],[1255910400000,1.41923],[1255996800000,1.42348],[1256083200000,1.43549],[1256169600000,1.43208],[1256256000000,1.442],[1256342400000,1.44257],[1256428800000,1.44257],[1256515200000,1.44257],[1256601600000,1.44296],[1256688000000,1.42045],[1256774400000,1.40943],[1256860800000,1.41115],[1256947200000,1.40972]], 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: [[1254355200000, 1.385373],[1254355200000, 1.385373],[1254441600000, 1.378756],[1254528000000, 1.378494],[1254614400000, 1.378494],[1254700800000, 1.378494],[1254787200000, 1.386149],[1254873600000, 1.406359],[1254960000000, 1.407209],[1255046400000, 1.415628],[1255132800000, 1.423035],[1255219200000, 1.423035],[1255305600000, 1.423035],[1255392000000, 1.420206],[1255478400000, 1.428964],[1255564800000, 1.436724],[1255651200000, 1.423092],[1255737600000, 1.419233],[1255824000000, 1.419233],[1255910400000, 1.419233],[1255996800000, 1.423484],[1256083200000, 1.435489],[1256169600000, 1.432079],[1256256000000, 1.441996],[1256342400000, 1.442569],[1256428800000, 1.442569],[1256515200000, 1.442569],[1256601600000, 1.442964],[1256688000000, 1.420454],[1256774400000, 1.409433],[1256860800000, 1.411153],[1256947200000, 1.409717]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });