$(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: [[1425168000000,20.545],[1425254400000,20.545],[1425340800000,19.7453],[1425427200000,18.2096],[1425513600000,17.4404],[1425600000000,16.8909],[1425686400000,16.7226],[1425772800000,16.7226],[1425859200000,16.7226],[1425945600000,16.7226],[1426032000000,15.7587],[1426118400000,15.5441],[1426204800000,15.5354],[1426291200000,15.6884],[1426377600000,15.6884],[1426464000000,15.6884],[1426550400000,15.6793],[1426636800000,16.0096],[1426723200000,16.778],[1426809600000,16.8164],[1426896000000,16.72],[1426982400000,16.72],[1427068800000,16.72],[1427155200000,16.6999],[1427241600000,16.991],[1427328000000,17.2692],[1427414400000,17.1841],[1427500800000,17.2155],[1427587200000,17.2155],[1427673600000,17.2155],[1427760000000,17.1237]], 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: [[1425168000000, 20.545036],[1425168000000, 20.545036],[1425254400000, 20.545036],[1425340800000, 19.745255],[1425427200000, 18.209601],[1425513600000, 17.440380],[1425600000000, 16.890868],[1425686400000, 16.722578],[1425772800000, 16.722578],[1425859200000, 16.722578],[1425945600000, 16.722578],[1426032000000, 15.758716],[1426118400000, 15.544054],[1426204800000, 15.535395],[1426291200000, 15.688384],[1426377600000, 15.688384],[1426464000000, 15.688384],[1426550400000, 15.679302],[1426636800000, 16.009554],[1426723200000, 16.778041],[1426809600000, 16.816400],[1426896000000, 16.719979],[1426982400000, 16.719979],[1427068800000, 16.719979],[1427155200000, 16.699895],[1427241600000, 16.990970],[1427328000000, 17.269156],[1427414400000, 17.184070],[1427500800000, 17.215481],[1427587200000, 17.215481],[1427673600000, 17.215481],[1427760000000, 17.123748]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });