$(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: [[1275350400000,1.31103],[1275436800000,1.29487],[1275523200000,1.30149],[1275609600000,1.30659],[1275696000000,1.28405],[1275782400000,1.28405],[1275868800000,1.28405],[1275955200000,1.27361],[1276041600000,1.27146],[1276128000000,1.27838],[1276214400000,1.28188],[1276300800000,1.29041],[1276387200000,1.29041],[1276473600000,1.29041],[1276560000000,1.30352],[1276646400000,1.30433],[1276732800000,1.30605],[1276819200000,1.31503],[1276905600000,1.31571],[1276992000000,1.31571],[1277078400000,1.31571],[1277164800000,1.31746],[1277251200000,1.30297],[1277337600000,1.30392],[1277424000000,1.30309],[1277510400000,1.30604],[1277596800000,1.30604],[1277683200000,1.30604],[1277769600000,1.30604],[1277856000000,1.29487]], 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: [[1275350400000, 1.311032],[1275350400000, 1.311032],[1275436800000, 1.294874],[1275523200000, 1.301493],[1275609600000, 1.306594],[1275696000000, 1.284052],[1275782400000, 1.284052],[1275868800000, 1.284052],[1275955200000, 1.273609],[1276041600000, 1.271456],[1276128000000, 1.278383],[1276214400000, 1.281880],[1276300800000, 1.290410],[1276387200000, 1.290410],[1276473600000, 1.290410],[1276560000000, 1.303524],[1276646400000, 1.304331],[1276732800000, 1.306051],[1276819200000, 1.315028],[1276905600000, 1.315708],[1276992000000, 1.315708],[1277078400000, 1.315708],[1277164800000, 1.317458],[1277251200000, 1.302969],[1277337600000, 1.303919],[1277424000000, 1.303090],[1277510400000, 1.306037],[1277596800000, 1.306037],[1277683200000, 1.306037],[1277769600000, 1.306037],[1277856000000, 1.294869]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });