$(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: [[1496275200000,19.5412],[1496361600000,19.448],[1496448000000,19.4339],[1496534400000,19.4339],[1496620800000,19.4339],[1496707200000,19.4339],[1496793600000,19.4782],[1496880000000,19.486],[1496966400000,19.3496],[1497052800000,19.3383],[1497139200000,19.3383],[1497225600000,19.3383],[1497312000000,19.4017],[1497398400000,19.5802],[1497484800000,19.6976],[1497571200000,19.5869],[1497657600000,19.6794],[1497744000000,19.6794],[1497830400000,19.6794],[1497916800000,19.6556],[1498003200000,19.6088],[1498089600000,19.5964],[1498176000000,19.5705],[1498262400000,19.6743],[1498348800000,19.6743],[1498435200000,19.6743],[1498521600000,19.6646],[1498608000000,19.747],[1498694400000,19.747],[1498780800000,20.0355]], 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: [[1496275200000, 19.541188],[1496275200000, 19.541188],[1496361600000, 19.447959],[1496448000000, 19.433930],[1496534400000, 19.433930],[1496620800000, 19.433930],[1496707200000, 19.433930],[1496793600000, 19.478183],[1496880000000, 19.485988],[1496966400000, 19.349557],[1497052800000, 19.338343],[1497139200000, 19.338343],[1497225600000, 19.338343],[1497312000000, 19.401734],[1497398400000, 19.580197],[1497484800000, 19.697602],[1497571200000, 19.586904],[1497657600000, 19.679436],[1497744000000, 19.679436],[1497830400000, 19.679436],[1497916800000, 19.655560],[1498003200000, 19.608771],[1498089600000, 19.596372],[1498176000000, 19.570524],[1498262400000, 19.674330],[1498348800000, 19.674330],[1498435200000, 19.674330],[1498521600000, 19.664563],[1498608000000, 19.747002],[1498694400000, 19.747002],[1498780800000, 20.035503]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });