$(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: [[1191196800000,3.39903],[1191283200000,3.41336],[1191369600000,3.40716],[1191456000000,3.41226],[1191542400000,3.40993],[1191628800000,3.42432],[1191715200000,3.42432],[1191801600000,3.42432],[1191888000000,3.43203],[1191974400000,3.42664],[1192060800000,3.44691],[1192147200000,3.45333],[1192233600000,3.44933],[1192320000000,3.44933],[1192406400000,3.44933],[1192492800000,3.45175],[1192579200000,3.44092],[1192665600000,3.45108],[1192752000000,3.46098],[1192838400000,3.45302],[1192924800000,3.45302],[1193011200000,3.45302],[1193097600000,3.44298],[1193184000000,3.44646],[1193270400000,3.45471],[1193356800000,3.46872],[1193443200000,3.47108],[1193529600000,3.47108],[1193616000000,3.47108],[1193702400000,3.47941],[1193788800000,3.48145]], 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: [[1191196800000, 3.399029],[1191196800000, 3.399029],[1191283200000, 3.413355],[1191369600000, 3.407156],[1191456000000, 3.412260],[1191542400000, 3.409928],[1191628800000, 3.424320],[1191715200000, 3.424320],[1191801600000, 3.424320],[1191888000000, 3.432032],[1191974400000, 3.426638],[1192060800000, 3.446914],[1192147200000, 3.453330],[1192233600000, 3.449333],[1192320000000, 3.449333],[1192406400000, 3.449333],[1192492800000, 3.451751],[1192579200000, 3.440916],[1192665600000, 3.451080],[1192752000000, 3.460983],[1192838400000, 3.453025],[1192924800000, 3.453025],[1193011200000, 3.453025],[1193097600000, 3.442983],[1193184000000, 3.446457],[1193270400000, 3.454714],[1193356800000, 3.468724],[1193443200000, 3.471076],[1193529600000, 3.471076],[1193616000000, 3.471076],[1193702400000, 3.479415],[1193788800000, 3.481450]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });