$(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: [[1146441600000,4.49116],[1146528000000,4.49116],[1146614400000,4.49116],[1146700800000,4.55978],[1146787200000,4.54114],[1146873600000,4.55624],[1146960000000,4.55624],[1147046400000,4.55624],[1147132800000,4.55624],[1147219200000,4.55624],[1147305600000,4.59415],[1147392000000,4.57247],[1147478400000,4.58813],[1147564800000,4.58813],[1147651200000,4.58813],[1147737600000,4.52788],[1147824000000,4.53803],[1147910400000,4.57483],[1147996800000,4.53028],[1148083200000,4.50202],[1148169600000,4.50202],[1148256000000,4.50202],[1148342400000,4.48736],[1148428800000,4.52621],[1148515200000,4.50115],[1148601600000,4.52496],[1148688000000,4.55682],[1148774400000,4.55682],[1148860800000,4.55682],[1148947200000,4.57325],[1149033600000,4.58601]], 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: [[1146441600000, 4.491158],[1146441600000, 4.491158],[1146528000000, 4.491158],[1146614400000, 4.491158],[1146700800000, 4.559775],[1146787200000, 4.541141],[1146873600000, 4.556240],[1146960000000, 4.556240],[1147046400000, 4.556240],[1147132800000, 4.556240],[1147219200000, 4.556240],[1147305600000, 4.594145],[1147392000000, 4.572472],[1147478400000, 4.588131],[1147564800000, 4.588131],[1147651200000, 4.588131],[1147737600000, 4.527878],[1147824000000, 4.538025],[1147910400000, 4.574831],[1147996800000, 4.530277],[1148083200000, 4.502015],[1148169600000, 4.502015],[1148256000000, 4.502015],[1148342400000, 4.487364],[1148428800000, 4.526213],[1148515200000, 4.501148],[1148601600000, 4.524956],[1148688000000, 4.556822],[1148774400000, 4.556822],[1148860800000, 4.556822],[1148947200000, 4.573247],[1149033600000, 4.586006]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });