$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1157068800000,9.32436],[1157155200000,9.29836],[1157241600000,9.29836],[1157328000000,9.29836],[1157414400000,9.32375],[1157500800000,9.29194],[1157587200000,9.28228],[1157673600000,9.23597],[1157760000000,9.22291],[1157846400000,9.22291],[1157932800000,9.22291],[1158019200000,9.22291],[1158105600000,9.22],[1158192000000,9.19943],[1158278400000,9.23149],[1158364800000,9.19534],[1158451200000,9.19534],[1158537600000,9.19534],[1158624000000,9.1894],[1158710400000,9.1801],[1158796800000,9.19739],[1158883200000,9.23729],[1158969600000,9.29836],[1159056000000,9.29836],[1159142400000,9.29836],[1159228800000,9.26281],[1159315200000,9.21117],[1159401600000,9.20319],[1159488000000,9.22423],[1159574400000,9.18578]], 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: [[1157068800000, 9.324361],[1157068800000, 9.324361],[1157155200000, 9.298355],[1157241600000, 9.298355],[1157328000000, 9.298355],[1157414400000, 9.323747],[1157500800000, 9.291942],[1157587200000, 9.282277],[1157673600000, 9.235965],[1157760000000, 9.222906],[1157846400000, 9.222906],[1157932800000, 9.222906],[1158019200000, 9.222906],[1158105600000, 9.220004],[1158192000000, 9.199432],[1158278400000, 9.231487],[1158364800000, 9.195338],[1158451200000, 9.195338],[1158537600000, 9.195338],[1158624000000, 9.189404],[1158710400000, 9.180103],[1158796800000, 9.197385],[1158883200000, 9.237292],[1158969600000, 9.298355],[1159056000000, 9.298355],[1159142400000, 9.298355],[1159228800000, 9.262807],[1159315200000, 9.211171],[1159401600000, 9.203190],[1159488000000, 9.224231],[1159574400000, 9.185776]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });