$(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: [[962409600000,8.2181],[962496000000,8.2181],[962582400000,8.2181],[962668800000,8.2192],[962755200000,8.22711],[962841600000,8.2156],[962928000000,8.22412],[963014400000,8.21492],[963100800000,8.21492],[963187200000,8.21492],[963273600000,8.24695],[963360000000,8.22437],[963446400000,8.23959],[963532800000,8.16941],[963619200000,8.1611],[963705600000,8.1611],[963792000000,8.1611],[963878400000,8.11193],[963964800000,8.15049],[964051200000,8.14215],[964137600000,8.13394],[964224000000,8.23354],[964310400000,8.23354],[964396800000,8.23354],[964483200000,8.25164],[964569600000,8.25336],[964656000000,8.25179],[964742400000,8.23893],[964828800000,8.20315],[964915200000,8.20315],[965001600000,8.20315]], 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: [[962409600000, 8.218100],[962409600000, 8.218100],[962496000000, 8.218100],[962582400000, 8.218100],[962668800000, 8.219200],[962755200000, 8.227110],[962841600000, 8.215600],[962928000000, 8.224120],[963014400000, 8.214920],[963100800000, 8.214920],[963187200000, 8.214920],[963273600000, 8.246950],[963360000000, 8.224370],[963446400000, 8.239590],[963532800000, 8.169410],[963619200000, 8.161100],[963705600000, 8.161100],[963792000000, 8.161100],[963878400000, 8.111930],[963964800000, 8.150490],[964051200000, 8.142150],[964137600000, 8.133940],[964224000000, 8.233540],[964310400000, 8.233540],[964396800000, 8.233540],[964483200000, 8.251640],[964569600000, 8.253360],[964656000000, 8.251790],[964742400000, 8.238930],[964828800000, 8.203150],[964915200000, 8.203150],[965001600000, 8.203150]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });