$(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: [[1412121600000,2.00668],[1412208000000,2.00783],[1412294400000,2.00453],[1412380800000,2.00615],[1412467200000,2.00615],[1412553600000,2.00615],[1412640000000,1.9975],[1412726400000,1.9972],[1412812800000,1.99955],[1412899200000,1.99537],[1412985600000,2.01784],[1413072000000,2.01784],[1413158400000,2.01784],[1413244800000,1.9823],[1413331200000,1.9954],[1413417600000,1.97577],[1413504000000,1.95755],[1413590400000,1.95252],[1413676800000,1.95252],[1413763200000,1.95252],[1413849600000,1.98142],[1413936000000,1.97161],[1414022400000,1.97525],[1414108800000,1.96123],[1414195200000,1.97458],[1414281600000,1.97458],[1414368000000,1.97458],[1414454400000,1.9657],[1414540800000,1.95599],[1414627200000,1.95603],[1414713600000,1.94839]], 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: [[1412121600000, 2.006681],[1412121600000, 2.006681],[1412208000000, 2.007827],[1412294400000, 2.004531],[1412380800000, 2.006154],[1412467200000, 2.006154],[1412553600000, 2.006154],[1412640000000, 1.997496],[1412726400000, 1.997199],[1412812800000, 1.999550],[1412899200000, 1.995365],[1412985600000, 2.017838],[1413072000000, 2.017838],[1413158400000, 2.017838],[1413244800000, 1.982302],[1413331200000, 1.995401],[1413417600000, 1.975772],[1413504000000, 1.957554],[1413590400000, 1.952523],[1413676800000, 1.952523],[1413763200000, 1.952523],[1413849600000, 1.981421],[1413936000000, 1.971606],[1414022400000, 1.975247],[1414108800000, 1.961231],[1414195200000, 1.974582],[1414281600000, 1.974582],[1414368000000, 1.974582],[1414454400000, 1.965703],[1414540800000, 1.955986],[1414627200000, 1.956030],[1414713600000, 1.948387]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });