$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1267401600000,1.45677],[1267488000000,1.45196],[1267574400000,1.45359],[1267660800000,1.46345],[1267747200000,1.46632],[1267833600000,1.45706],[1267920000000,1.45706],[1268006400000,1.45706],[1268092800000,1.45706],[1268179200000,1.45449],[1268265600000,1.46],[1268352000000,1.46472],[1268438400000,1.4758],[1268524800000,1.4758],[1268611200000,1.4758],[1268697600000,1.46909],[1268784000000,1.47115],[1268870400000,1.47458],[1268956800000,1.46427],[1269043200000,1.44935],[1269129600000,1.44935],[1269216000000,1.44935],[1269302400000,1.44016],[1269388800000,1.44449],[1269475200000,1.42246],[1269561600000,1.42342],[1269648000000,1.4229],[1269734400000,1.4229],[1269820800000,1.4229],[1269907200000,1.43455],[1269993600000,1.43533]], 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: [[1267401600000, 1.456768],[1267401600000, 1.456768],[1267488000000, 1.451956],[1267574400000, 1.453593],[1267660800000, 1.463447],[1267747200000, 1.466322],[1267833600000, 1.457061],[1267920000000, 1.457061],[1268006400000, 1.457061],[1268092800000, 1.457061],[1268179200000, 1.454494],[1268265600000, 1.460005],[1268352000000, 1.464720],[1268438400000, 1.475799],[1268524800000, 1.475799],[1268611200000, 1.475799],[1268697600000, 1.469087],[1268784000000, 1.471155],[1268870400000, 1.474583],[1268956800000, 1.464273],[1269043200000, 1.449351],[1269129600000, 1.449351],[1269216000000, 1.449351],[1269302400000, 1.440161],[1269388800000, 1.444492],[1269475200000, 1.422464],[1269561600000, 1.423417],[1269648000000, 1.422899],[1269734400000, 1.422899],[1269820800000, 1.422899],[1269907200000, 1.434549],[1269993600000, 1.435334]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });