$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1470009600000,0.088304],[1470096000000,0.088963],[1470182400000,0.089311],[1470268800000,0.08937],[1470355200000,0.088783],[1470441600000,0.08909],[1470528000000,0.08909],[1470614400000,0.08909],[1470700800000,0.088475],[1470787200000,0.088583],[1470873600000,0.089414],[1470960000000,0.08933],[1471046400000,0.090137],[1471132800000,0.090137],[1471219200000,0.090137],[1471305600000,0.090726],[1471392000000,0.091331],[1471478400000,0.091073],[1471564800000,0.091798],[1471651200000,0.092214],[1471737600000,0.092214],[1471824000000,0.092214],[1471910400000,0.092195],[1471996800000,0.092415],[1472083200000,0.092415],[1472169600000,0.092307],[1472256000000,0.09311],[1472342400000,0.09311],[1472428800000,0.09311],[1472515200000,0.09221],[1472601600000,0.092722]], 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, 0.088304],[1470009600000, 0.088304],[1470096000000, 0.088963],[1470182400000, 0.089311],[1470268800000, 0.089370],[1470355200000, 0.088783],[1470441600000, 0.089090],[1470528000000, 0.089090],[1470614400000, 0.089090],[1470700800000, 0.088475],[1470787200000, 0.088583],[1470873600000, 0.089414],[1470960000000, 0.089330],[1471046400000, 0.090137],[1471132800000, 0.090137],[1471219200000, 0.090137],[1471305600000, 0.090726],[1471392000000, 0.091331],[1471478400000, 0.091073],[1471564800000, 0.091798],[1471651200000, 0.092214],[1471737600000, 0.092214],[1471824000000, 0.092214],[1471910400000, 0.092195],[1471996800000, 0.092415],[1472083200000, 0.092415],[1472169600000, 0.092307],[1472256000000, 0.093110],[1472342400000, 0.093110],[1472428800000, 0.093110],[1472515200000, 0.092210],[1472601600000, 0.092722]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });