$(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: [[1335830400000,1.42096],[1335916800000,1.42096],[1336003200000,1.42096],[1336089600000,1.40971],[1336176000000,1.41068],[1336262400000,1.41068],[1336348800000,1.41068],[1336435200000,1.40006],[1336521600000,1.39922],[1336608000000,1.39922],[1336694400000,1.39313],[1336780800000,1.39132],[1336867200000,1.39132],[1336953600000,1.39132],[1337040000000,1.38263],[1337126400000,1.38045],[1337212800000,1.36923],[1337299200000,1.36344],[1337385600000,1.3677],[1337472000000,1.3677],[1337558400000,1.3677],[1337644800000,1.37098],[1337731200000,1.37315],[1337817600000,1.36144],[1337904000000,1.35053],[1337990400000,1.3494],[1338076800000,1.3494],[1338163200000,1.3494],[1338249600000,1.35168],[1338336000000,1.34698],[1338422400000,1.33775]], 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: [[1335830400000, 1.420964],[1335830400000, 1.420964],[1335916800000, 1.420964],[1336003200000, 1.420964],[1336089600000, 1.409711],[1336176000000, 1.410677],[1336262400000, 1.410677],[1336348800000, 1.410677],[1336435200000, 1.400058],[1336521600000, 1.399215],[1336608000000, 1.399215],[1336694400000, 1.393131],[1336780800000, 1.391322],[1336867200000, 1.391322],[1336953600000, 1.391322],[1337040000000, 1.382634],[1337126400000, 1.380448],[1337212800000, 1.369235],[1337299200000, 1.363441],[1337385600000, 1.367701],[1337472000000, 1.367701],[1337558400000, 1.367701],[1337644800000, 1.370985],[1337731200000, 1.373148],[1337817600000, 1.361444],[1337904000000, 1.350528],[1337990400000, 1.349400],[1338076800000, 1.349400],[1338163200000, 1.349400],[1338249600000, 1.351678],[1338336000000, 1.346980],[1338422400000, 1.337748]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });