$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1017619200000,7.57408],[1017705600000,7.57536],[1017792000000,7.65801],[1017878400000,7.66196],[1017964800000,7.64217],[1018051200000,7.64217],[1018137600000,7.64217],[1018224000000,7.64538],[1018310400000,7.62609],[1018396800000,7.62609],[1018483200000,7.65655],[1018569600000,7.65796],[1018656000000,7.65796],[1018742400000,7.65796],[1018828800000,7.65806],[1018915200000,7.65806],[1019001600000,7.65628],[1019088000000,7.69547],[1019174400000,7.70583],[1019260800000,7.70583],[1019347200000,7.70583],[1019433600000,7.7096],[1019520000000,7.7096],[1019606400000,7.70845],[1019692800000,7.73413],[1019779200000,7.73711],[1019865600000,7.73711],[1019952000000,7.73711],[1020038400000,7.73711],[1020124800000,7.75462]], 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: [[1017619200000, 7.574080],[1017619200000, 7.574080],[1017705600000, 7.575360],[1017792000000, 7.658010],[1017878400000, 7.661960],[1017964800000, 7.642170],[1018051200000, 7.642170],[1018137600000, 7.642170],[1018224000000, 7.645380],[1018310400000, 7.626090],[1018396800000, 7.626090],[1018483200000, 7.656550],[1018569600000, 7.657960],[1018656000000, 7.657960],[1018742400000, 7.657960],[1018828800000, 7.658060],[1018915200000, 7.658060],[1019001600000, 7.656280],[1019088000000, 7.695470],[1019174400000, 7.705830],[1019260800000, 7.705830],[1019347200000, 7.705830],[1019433600000, 7.709600],[1019520000000, 7.709600],[1019606400000, 7.708450],[1019692800000, 7.734130],[1019779200000, 7.737110],[1019865600000, 7.737110],[1019952000000, 7.737110],[1020038400000, 7.737110],[1020124800000, 7.754620]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });