$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1191196800000,0.777062],[1191283200000,0.781723],[1191369600000,0.77616],[1191456000000,0.778869],[1191542400000,0.776529],[1191628800000,0.777228],[1191715200000,0.777228],[1191801600000,0.777228],[1191888000000,0.77619],[1191974400000,0.773621],[1192060800000,0.780463],[1192147200000,0.787162],[1192233600000,0.785272],[1192320000000,0.785272],[1192406400000,0.785272],[1192492800000,0.790133],[1192579200000,0.780632],[1192665600000,0.784093],[1192752000000,0.788921],[1192838400000,0.78705],[1192924800000,0.78705],[1193011200000,0.78705],[1193097600000,0.776367],[1193184000000,0.783272],[1193270400000,0.780026],[1193356800000,0.784561],[1193443200000,0.791277],[1193529600000,0.791277],[1193616000000,0.791277],[1193702400000,0.790628],[1193788800000,0.792697]], 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, 0.777062],[1191196800000, 0.777062],[1191283200000, 0.781723],[1191369600000, 0.776160],[1191456000000, 0.778869],[1191542400000, 0.776529],[1191628800000, 0.777228],[1191715200000, 0.777228],[1191801600000, 0.777228],[1191888000000, 0.776190],[1191974400000, 0.773621],[1192060800000, 0.780463],[1192147200000, 0.787162],[1192233600000, 0.785272],[1192320000000, 0.785272],[1192406400000, 0.785272],[1192492800000, 0.790133],[1192579200000, 0.780632],[1192665600000, 0.784093],[1192752000000, 0.788921],[1192838400000, 0.787050],[1192924800000, 0.787050],[1193011200000, 0.787050],[1193097600000, 0.776367],[1193184000000, 0.783272],[1193270400000, 0.780026],[1193356800000, 0.784561],[1193443200000, 0.791277],[1193529600000, 0.791277],[1193616000000, 0.791277],[1193702400000, 0.790628],[1193788800000, 0.792697]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });