$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1157068800000,0.0236292],[1157155200000,0.023312],[1157241600000,0.023312],[1157328000000,0.023312],[1157414400000,0.0234119],[1157500800000,0.0234225],[1157587200000,0.0234585],[1157673600000,0.0232578],[1157760000000,0.0233584],[1157846400000,0.0233584],[1157932800000,0.0233584],[1158019200000,0.023384],[1158105600000,0.0233971],[1158192000000,0.023385],[1158278400000,0.023524],[1158364800000,0.0234869],[1158451200000,0.0234869],[1158537600000,0.0234869],[1158624000000,0.0236244],[1158710400000,0.0233674],[1158796800000,0.023408],[1158883200000,0.023423],[1158969600000,0.0233693],[1159056000000,0.0233693],[1159142400000,0.0233693],[1159228800000,0.0234826],[1159315200000,0.0234765],[1159401600000,0.0234091],[1159488000000,0.0234875],[1159574400000,0.0234187]], 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, 0.023629],[1157068800000, 0.023629],[1157155200000, 0.023312],[1157241600000, 0.023312],[1157328000000, 0.023312],[1157414400000, 0.023412],[1157500800000, 0.023422],[1157587200000, 0.023459],[1157673600000, 0.023258],[1157760000000, 0.023358],[1157846400000, 0.023358],[1157932800000, 0.023358],[1158019200000, 0.023384],[1158105600000, 0.023397],[1158192000000, 0.023385],[1158278400000, 0.023524],[1158364800000, 0.023487],[1158451200000, 0.023487],[1158537600000, 0.023487],[1158624000000, 0.023624],[1158710400000, 0.023367],[1158796800000, 0.023408],[1158883200000, 0.023423],[1158969600000, 0.023369],[1159056000000, 0.023369],[1159142400000, 0.023369],[1159228800000, 0.023483],[1159315200000, 0.023477],[1159401600000, 0.023409],[1159488000000, 0.023488],[1159574400000, 0.023419]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });