$(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: [[1341100800000,1.3416],[1341187200000,1.3416],[1341273600000,1.35385],[1341360000000,1.35194],[1341446400000,1.34989],[1341532800000,1.33547],[1341619200000,1.32938],[1341705600000,1.32946],[1341792000000,1.32946],[1341878400000,1.3209],[1341964800000,1.32017],[1342051200000,1.31778],[1342137600000,1.30884],[1342224000000,1.30933],[1342310400000,1.30933],[1342396800000,1.30933],[1342483200000,1.30826],[1342569600000,1.31901],[1342656000000,1.31455],[1342742400000,1.32026],[1342828800000,1.31079],[1342915200000,1.31079],[1343001600000,1.31079],[1343088000000,1.30054],[1343174400000,1.29889],[1343260800000,1.30384],[1343347200000,1.31741],[1343433600000,1.32343],[1343520000000,1.32343],[1343606400000,1.32343],[1343692800000,1.31589]], 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: [[1341100800000, 1.341599],[1341100800000, 1.341599],[1341187200000, 1.341599],[1341273600000, 1.353854],[1341360000000, 1.351937],[1341446400000, 1.349888],[1341532800000, 1.335469],[1341619200000, 1.329380],[1341705600000, 1.329463],[1341792000000, 1.329463],[1341878400000, 1.320902],[1341964800000, 1.320167],[1342051200000, 1.317781],[1342137600000, 1.308844],[1342224000000, 1.309333],[1342310400000, 1.309333],[1342396800000, 1.309333],[1342483200000, 1.308262],[1342569600000, 1.319010],[1342656000000, 1.314545],[1342742400000, 1.320257],[1342828800000, 1.310786],[1342915200000, 1.310786],[1343001600000, 1.310786],[1343088000000, 1.300544],[1343174400000, 1.298895],[1343260800000, 1.303835],[1343347200000, 1.317409],[1343433600000, 1.323428],[1343520000000, 1.323428],[1343606400000, 1.323428],[1343692800000, 1.315887]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });