$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1470009600000,6.31848],[1470096000000,6.35907],[1470182400000,6.42552],[1470268800000,6.44422],[1470355200000,6.43395],[1470441600000,6.45951],[1470528000000,6.45951],[1470614400000,6.45951],[1470700800000,6.43143],[1470787200000,6.44348],[1470873600000,6.50241],[1470960000000,6.50541],[1471046400000,6.55078],[1471132800000,6.55078],[1471219200000,6.55078],[1471305600000,6.57658],[1471392000000,6.6293],[1471478400000,6.59332],[1471564800000,6.63855],[1471651200000,6.65525],[1471737600000,6.65525],[1471824000000,6.65525],[1471910400000,6.64687],[1471996800000,6.65351],[1472083200000,6.65351],[1472169600000,6.63142],[1472256000000,6.64241],[1472342400000,6.64241],[1472428800000,6.64241],[1472515200000,6.57313],[1472601600000,6.59555]], 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, 6.318476],[1470009600000, 6.318476],[1470096000000, 6.359073],[1470182400000, 6.425518],[1470268800000, 6.444222],[1470355200000, 6.433951],[1470441600000, 6.459508],[1470528000000, 6.459508],[1470614400000, 6.459508],[1470700800000, 6.431434],[1470787200000, 6.443477],[1470873600000, 6.502407],[1470960000000, 6.505413],[1471046400000, 6.550779],[1471132800000, 6.550779],[1471219200000, 6.550779],[1471305600000, 6.576585],[1471392000000, 6.629302],[1471478400000, 6.593324],[1471564800000, 6.638553],[1471651200000, 6.655247],[1471737600000, 6.655247],[1471824000000, 6.655247],[1471910400000, 6.646874],[1471996800000, 6.653513],[1472083200000, 6.653513],[1472169600000, 6.631423],[1472256000000, 6.642406],[1472342400000, 6.642406],[1472428800000, 6.642406],[1472515200000, 6.573132],[1472601600000, 6.595548]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });