$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1335830400000,0.036797],[1335916800000,0.036797],[1336003200000,0.036797],[1336089600000,0.037026],[1336176000000,0.036835],[1336262400000,0.036835],[1336348800000,0.036835],[1336435200000,0.036344],[1336521600000,0.036325],[1336608000000,0.036325],[1336694400000,0.035919],[1336780800000,0.035675],[1336867200000,0.035675],[1336953600000,0.035675],[1337040000000,0.035225],[1337126400000,0.035112],[1337212800000,0.03458],[1337299200000,0.034025],[1337385600000,0.0342],[1337472000000,0.0342],[1337558400000,0.0342],[1337644800000,0.03425],[1337731200000,0.034354],[1337817600000,0.033502],[1337904000000,0.033478],[1337990400000,0.033339],[1338076800000,0.033339],[1338163200000,0.033339],[1338249600000,0.03366],[1338336000000,0.033599],[1338422400000,0.033253]], 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, 0.036797],[1335830400000, 0.036797],[1335916800000, 0.036797],[1336003200000, 0.036797],[1336089600000, 0.037026],[1336176000000, 0.036835],[1336262400000, 0.036835],[1336348800000, 0.036835],[1336435200000, 0.036344],[1336521600000, 0.036325],[1336608000000, 0.036325],[1336694400000, 0.035919],[1336780800000, 0.035675],[1336867200000, 0.035675],[1336953600000, 0.035675],[1337040000000, 0.035225],[1337126400000, 0.035112],[1337212800000, 0.034580],[1337299200000, 0.034025],[1337385600000, 0.034200],[1337472000000, 0.034200],[1337558400000, 0.034200],[1337644800000, 0.034250],[1337731200000, 0.034354],[1337817600000, 0.033502],[1337904000000, 0.033478],[1337990400000, 0.033339],[1338076800000, 0.033339],[1338163200000, 0.033339],[1338249600000, 0.033660],[1338336000000, 0.033599],[1338422400000, 0.033253]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });