$(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: [[1143849600000,4.34004],[1143936000000,4.34004],[1144022400000,4.34004],[1144108800000,4.29849],[1144195200000,4.32013],[1144281600000,4.34853],[1144368000000,4.37087],[1144454400000,4.401],[1144540800000,4.401],[1144627200000,4.401],[1144713600000,4.40265],[1144800000000,4.40928],[1144886400000,4.41052],[1144972800000,4.39861],[1145059200000,4.39861],[1145145600000,4.39861],[1145232000000,4.39861],[1145318400000,4.39861],[1145404800000,4.41034],[1145491200000,4.43343],[1145577600000,4.44101],[1145664000000,4.43966],[1145750400000,4.43966],[1145836800000,4.43966],[1145923200000,4.43966],[1146009600000,4.44064],[1146096000000,4.46338],[1146182400000,4.4642],[1146268800000,4.49116],[1146355200000,4.49116]], 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: [[1143849600000, 4.340045],[1143849600000, 4.340045],[1143936000000, 4.340045],[1144022400000, 4.340045],[1144108800000, 4.298486],[1144195200000, 4.320135],[1144281600000, 4.348532],[1144368000000, 4.370868],[1144454400000, 4.400998],[1144540800000, 4.400998],[1144627200000, 4.400998],[1144713600000, 4.402648],[1144800000000, 4.409279],[1144886400000, 4.410520],[1144972800000, 4.398610],[1145059200000, 4.398610],[1145145600000, 4.398610],[1145232000000, 4.398610],[1145318400000, 4.398610],[1145404800000, 4.410336],[1145491200000, 4.433428],[1145577600000, 4.441007],[1145664000000, 4.439659],[1145750400000, 4.439659],[1145836800000, 4.439659],[1145923200000, 4.439659],[1146009600000, 4.440640],[1146096000000, 4.463384],[1146182400000, 4.464196],[1146268800000, 4.491158],[1146355200000, 4.491158]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });