$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1443657600000,14.9849],[1443744000000,14.823],[1443830400000,14.754],[1443916800000,14.754],[1444003200000,14.754],[1444089600000,14.9136],[1444176000000,14.9298],[1444262400000,15.0995],[1444348800000,15.0851],[1444435200000,15.4046],[1444521600000,15.4046],[1444608000000,15.4046],[1444694400000,15.6088],[1444780800000,15.661],[1444867200000,15.661],[1444953600000,15.7516],[1445040000000,15.3966],[1445126400000,15.3966],[1445212800000,15.3966],[1445299200000,15.6195],[1445385600000,15.8369],[1445472000000,16.2318],[1445558400000,16.0099],[1445644800000,16.2395],[1445731200000,16.2395],[1445817600000,16.2395],[1445904000000,16.4343],[1445990400000,16.398],[1446076800000,16.4226],[1446163200000,16.2834],[1446249600000,16.4015]], 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, 14.984926],[1443657600000, 14.984926],[1443744000000, 14.822998],[1443830400000, 14.754030],[1443916800000, 14.754030],[1444003200000, 14.754030],[1444089600000, 14.913597],[1444176000000, 14.929794],[1444262400000, 15.099540],[1444348800000, 15.085099],[1444435200000, 15.404599],[1444521600000, 15.404599],[1444608000000, 15.404599],[1444694400000, 15.608800],[1444780800000, 15.660963],[1444867200000, 15.660963],[1444953600000, 15.751586],[1445040000000, 15.396580],[1445126400000, 15.396580],[1445212800000, 15.396580],[1445299200000, 15.619479],[1445385600000, 15.836873],[1445472000000, 16.231789],[1445558400000, 16.009925],[1445644800000, 16.239468],[1445731200000, 16.239468],[1445817600000, 16.239468],[1445904000000, 16.434275],[1445990400000, 16.398035],[1446076800000, 16.422628],[1446163200000, 16.283372],[1446249600000, 16.401547]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });