$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1470009600000,1.01985],[1470096000000,1.02365],[1470182400000,1.02784],[1470268800000,1.02811],[1470355200000,1.02221],[1470441600000,1.0241],[1470528000000,1.0241],[1470614400000,1.0241],[1470700800000,1.01815],[1470787200000,1.01727],[1470873600000,1.02701],[1470960000000,1.02575],[1471046400000,1.03428],[1471132800000,1.03428],[1471219200000,1.03428],[1471305600000,1.03907],[1471392000000,1.04754],[1471478400000,1.04689],[1471564800000,1.05447],[1471651200000,1.05885],[1471737600000,1.05885],[1471824000000,1.05885],[1471910400000,1.0581],[1471996800000,1.06183],[1472083200000,1.06183],[1472169600000,1.05812],[1472256000000,1.06292],[1472342400000,1.06292],[1472428800000,1.06292],[1472515200000,1.05358],[1472601600000,1.06007]], 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: [[1470009600000, 1.019848],[1470009600000, 1.019848],[1470096000000, 1.023653],[1470182400000, 1.027840],[1470268800000, 1.028110],[1470355200000, 1.022214],[1470441600000, 1.024098],[1470528000000, 1.024098],[1470614400000, 1.024098],[1470700800000, 1.018150],[1470787200000, 1.017267],[1470873600000, 1.027007],[1470960000000, 1.025746],[1471046400000, 1.034285],[1471132800000, 1.034285],[1471219200000, 1.034285],[1471305600000, 1.039068],[1471392000000, 1.047538],[1471478400000, 1.046885],[1471564800000, 1.054470],[1471651200000, 1.058850],[1471737600000, 1.058850],[1471824000000, 1.058850],[1471910400000, 1.058103],[1471996800000, 1.061834],[1472083200000, 1.061834],[1472169600000, 1.058118],[1472256000000, 1.062923],[1472342400000, 1.062923],[1472428800000, 1.062923],[1472515200000, 1.053579],[1472601600000, 1.060071]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });