$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1412121600000,1.78734],[1412208000000,1.78227],[1412294400000,1.79485],[1412380800000,1.79826],[1412467200000,1.79826],[1412553600000,1.79826],[1412640000000,1.79282],[1412726400000,1.79482],[1412812800000,1.80067],[1412899200000,1.79048],[1412985600000,1.81106],[1413072000000,1.81106],[1413158400000,1.81106],[1413244800000,1.78894],[1413331200000,1.80248],[1413417600000,1.78841],[1413504000000,1.78302],[1413590400000,1.79608],[1413676800000,1.79608],[1413763200000,1.79608],[1413849600000,1.81437],[1413936000000,1.79862],[1414022400000,1.79632],[1414108800000,1.78446],[1414195200000,1.78589],[1414281600000,1.78589],[1414368000000,1.78589],[1414454400000,1.78426],[1414540800000,1.77388],[1414627200000,1.76352],[1414713600000,1.76838]], 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, 1.787342],[1412121600000, 1.787342],[1412208000000, 1.782272],[1412294400000, 1.794846],[1412380800000, 1.798264],[1412467200000, 1.798264],[1412553600000, 1.798264],[1412640000000, 1.792818],[1412726400000, 1.794823],[1412812800000, 1.800671],[1412899200000, 1.790480],[1412985600000, 1.811062],[1413072000000, 1.811062],[1413158400000, 1.811062],[1413244800000, 1.788938],[1413331200000, 1.802482],[1413417600000, 1.788409],[1413504000000, 1.783018],[1413590400000, 1.796076],[1413676800000, 1.796076],[1413763200000, 1.796076],[1413849600000, 1.814369],[1413936000000, 1.798625],[1414022400000, 1.796323],[1414108800000, 1.784456],[1414195200000, 1.785891],[1414281600000, 1.785891],[1414368000000, 1.785891],[1414454400000, 1.784260],[1414540800000, 1.773885],[1414627200000, 1.763519],[1414713600000, 1.768384]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });