$(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: [[1472688000000,3.90069],[1472774400000,3.98642],[1472860800000,4.0066],[1472947200000,4.0066],[1473033600000,4.0066],[1473120000000,4.01624],[1473206400000,4.0261],[1473292800000,4.03408],[1473379200000,4.04279],[1473465600000,4.03843],[1473552000000,4.03843],[1473638400000,4.03843],[1473724800000,4.0164],[1473811200000,3.99281],[1473897600000,3.96778],[1473984000000,3.96076],[1474070400000,3.90441],[1474156800000,3.90441],[1474243200000,3.90441],[1474329600000,3.86144],[1474416000000,3.87291],[1474502400000,3.88508],[1474588800000,3.90809],[1474675200000,3.90947],[1474761600000,3.90947],[1474848000000,3.90947],[1474934400000,3.91343],[1475020800000,3.88997],[1475107200000,3.9013],[1475193600000,3.90158]], 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: [[1472688000000, 3.900694],[1472688000000, 3.900694],[1472774400000, 3.986417],[1472860800000, 4.006598],[1472947200000, 4.006598],[1473033600000, 4.006598],[1473120000000, 4.016240],[1473206400000, 4.026097],[1473292800000, 4.034081],[1473379200000, 4.042788],[1473465600000, 4.038435],[1473552000000, 4.038435],[1473638400000, 4.038435],[1473724800000, 4.016395],[1473811200000, 3.992813],[1473897600000, 3.967783],[1473984000000, 3.960764],[1474070400000, 3.904413],[1474156800000, 3.904413],[1474243200000, 3.904413],[1474329600000, 3.861443],[1474416000000, 3.872907],[1474502400000, 3.885078],[1474588800000, 3.908090],[1474675200000, 3.909471],[1474761600000, 3.909471],[1474848000000, 3.909471],[1474934400000, 3.913427],[1475020800000, 3.889971],[1475107200000, 3.901301],[1475193600000, 3.901577]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });