$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1414800000000,19.1771],[1414886400000,19.1771],[1414972800000,19.1771],[1415059200000,19.1454],[1415145600000,19.0788],[1415232000000,19.8891],[1415318400000,20.5078],[1415404800000,21.3024],[1415491200000,21.3024],[1415577600000,21.3024],[1415664000000,21.6881],[1415750400000,23.1931],[1415836800000,23.082],[1415923200000,22.8393],[1416009600000,22.604],[1416096000000,22.604],[1416182400000,22.604],[1416268800000,null],[1416355200000,22.3711],[1416441600000,22.2992],[1416528000000,22.2228],[1416614400000,22.1435],[1416700800000,22.1435],[1416787200000,22.1435],[1416873600000,22.0193],[1416960000000,21.9332],[1417046400000,21.8979],[1417132800000,21.9151],[1417219200000,21.9186],[1417305600000,21.9186]], 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: [[1414800000000, 19.177107],[1414800000000, 19.177107],[1414886400000, 19.177107],[1414972800000, 19.177107],[1415059200000, 19.145447],[1415145600000, 19.078773],[1415232000000, 19.889086],[1415318400000, 20.507817],[1415404800000, 21.302374],[1415491200000, 21.302374],[1415577600000, 21.302374],[1415664000000, 21.688122],[1415750400000, 23.193113],[1415836800000, 23.081952],[1415923200000, 22.839294],[1416009600000, 22.603989],[1416096000000, 22.603989],[1416182400000, 22.603989],[1416355200000, 22.371071],[1416441600000, 22.299224],[1416528000000, 22.222777],[1416614400000, 22.143496],[1416700800000, 22.143496],[1416787200000, 22.143496],[1416873600000, 22.019349],[1416960000000, 21.933212],[1417046400000, 21.897933],[1417132800000, 21.915117],[1417219200000, 21.918607],[1417305600000, 21.918607]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });