$(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: [[1154390400000,4.49417],[1154476800000,4.45687],[1154563200000,4.47544],[1154649600000,4.48846],[1154736000000,4.4576],[1154822400000,4.4576],[1154908800000,4.4576],[1154995200000,4.48462],[1155081600000,4.51228],[1155168000000,4.51033],[1155254400000,4.5117],[1155340800000,4.49479],[1155427200000,4.49479],[1155513600000,4.49479],[1155600000000,4.47942],[1155686400000,4.46476],[1155772800000,4.50458],[1155859200000,4.52162],[1155945600000,4.49834],[1156032000000,4.49834],[1156118400000,4.49834],[1156204800000,4.51807],[1156291200000,4.51914],[1156377600000,4.54262],[1156464000000,4.54262],[1156550400000,4.54262],[1156636800000,4.54262],[1156723200000,4.54262],[1156809600000,4.55725],[1156896000000,4.55303],[1156982400000,4.56173]], 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: [[1154390400000, 4.494169],[1154390400000, 4.494169],[1154476800000, 4.456869],[1154563200000, 4.475445],[1154649600000, 4.488460],[1154736000000, 4.457604],[1154822400000, 4.457604],[1154908800000, 4.457604],[1154995200000, 4.484623],[1155081600000, 4.512280],[1155168000000, 4.510329],[1155254400000, 4.511698],[1155340800000, 4.494792],[1155427200000, 4.494792],[1155513600000, 4.494792],[1155600000000, 4.479418],[1155686400000, 4.464757],[1155772800000, 4.504577],[1155859200000, 4.521618],[1155945600000, 4.498337],[1156032000000, 4.498337],[1156118400000, 4.498337],[1156204800000, 4.518071],[1156291200000, 4.519145],[1156377600000, 4.542624],[1156464000000, 4.542624],[1156550400000, 4.542624],[1156636800000, 4.542624],[1156723200000, 4.542624],[1156809600000, 4.557248],[1156896000000, 4.553034],[1156982400000, 4.561727]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });