$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1443657600000,21.8575],[1443744000000,21.6383],[1443830400000,21.6063],[1443916800000,21.6063],[1444003200000,21.6063],[1444089600000,21.7936],[1444176000000,21.824],[1444262400000,22.0207],[1444348800000,21.9206],[1444435200000,22.3683],[1444521600000,22.3683],[1444608000000,22.3683],[1444694400000,22.7062],[1444780800000,22.8656],[1444867200000,22.8656],[1444953600000,22.8197],[1445040000000,22.3834],[1445126400000,22.3834],[1445212800000,22.3834],[1445299200000,22.6132],[1445385600000,23.1064],[1445472000000,23.629],[1445558400000,23.1545],[1445644800000,23.1833],[1445731200000,23.1833],[1445817600000,23.1833],[1445904000000,23.3038],[1445990400000,23.2436],[1446076800000,23.2771],[1446163200000,23.0707],[1446249600000,23.2405]], 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: [[1443657600000, 21.857536],[1443657600000, 21.857536],[1443744000000, 21.638341],[1443830400000, 21.606286],[1443916800000, 21.606286],[1444003200000, 21.606286],[1444089600000, 21.793649],[1444176000000, 21.824039],[1444262400000, 22.020741],[1444348800000, 21.920642],[1444435200000, 22.368341],[1444521600000, 22.368341],[1444608000000, 22.368341],[1444694400000, 22.706176],[1444780800000, 22.865581],[1444867200000, 22.865581],[1444953600000, 22.819735],[1445040000000, 22.383371],[1445126400000, 22.383371],[1445212800000, 22.383371],[1445299200000, 22.613212],[1445385600000, 23.106354],[1445472000000, 23.629026],[1445558400000, 23.154534],[1445644800000, 23.183334],[1445731200000, 23.183334],[1445817600000, 23.183334],[1445904000000, 23.303781],[1445990400000, 23.243612],[1446076800000, 23.277067],[1446163200000, 23.070736],[1446249600000, 23.240540]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });