$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1296518400000,7.94905],[1296604800000,7.9635],[1296691200000,8.0313],[1296777600000,8.03076],[1296864000000,8.05382],[1296950400000,8.05382],[1297036800000,8.05382],[1297123200000,8.04773],[1297209600000,8.02326],[1297296000000,7.9863],[1297382400000,7.96283],[1297468800000,7.9789],[1297555200000,7.9789],[1297641600000,7.9789],[1297728000000,8.03921],[1297814400000,8.05862],[1297900800000,8.05015],[1297987200000,8.08055],[1298073600000,8.07744],[1298160000000,8.07744],[1298246400000,8.07744],[1298332800000,8.0724],[1298419200000,8.04135],[1298505600000,7.99207],[1298592000000,8.06224],[1298678400000,8.09241],[1298764800000,8.09241],[1298851200000,8.09241]], 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: [[1296518400000, 7.949047],[1296518400000, 7.949047],[1296604800000, 7.963500],[1296691200000, 8.031305],[1296777600000, 8.030756],[1296864000000, 8.053825],[1296950400000, 8.053825],[1297036800000, 8.053825],[1297123200000, 8.047727],[1297209600000, 8.023261],[1297296000000, 7.986305],[1297382400000, 7.962831],[1297468800000, 7.978899],[1297555200000, 7.978899],[1297641600000, 7.978899],[1297728000000, 8.039205],[1297814400000, 8.058623],[1297900800000, 8.050148],[1297987200000, 8.080547],[1298073600000, 8.077440],[1298160000000, 8.077440],[1298246400000, 8.077440],[1298332800000, 8.072396],[1298419200000, 8.041354],[1298505600000, 7.992069],[1298592000000, 8.062236],[1298678400000, 8.092407],[1298764800000, 8.092407],[1298851200000, 8.092407]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });