$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1485907200000,6.73559],[1485993600000,6.74558],[1486080000000,6.77196],[1486166400000,6.76823],[1486252800000,6.76823],[1486339200000,6.76823],[1486425600000,6.82859],[1486512000000,6.70537],[1486598400000,6.65666],[1486684800000,6.70486],[1486771200000,6.73251],[1486857600000,6.73251],[1486944000000,6.73251],[1487030400000,6.69351],[1487116800000,6.72531],[1487203200000,6.62368],[1487289600000,6.65841],[1487376000000,6.64654],[1487462400000,6.64654],[1487548800000,6.64654],[1487635200000,6.63415],[1487721600000,6.61683],[1487808000000,6.59655],[1487894400000,6.60353],[1487980800000,6.63916],[1488067200000,6.63916],[1488153600000,6.63916],[1488240000000,6.63802]], 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: [[1485907200000, 6.735595],[1485907200000, 6.735595],[1485993600000, 6.745583],[1486080000000, 6.771964],[1486166400000, 6.768233],[1486252800000, 6.768233],[1486339200000, 6.768233],[1486425600000, 6.828592],[1486512000000, 6.705367],[1486598400000, 6.656659],[1486684800000, 6.704864],[1486771200000, 6.732508],[1486857600000, 6.732508],[1486944000000, 6.732508],[1487030400000, 6.693510],[1487116800000, 6.725314],[1487203200000, 6.623677],[1487289600000, 6.658409],[1487376000000, 6.646539],[1487462400000, 6.646539],[1487548800000, 6.646539],[1487635200000, 6.634153],[1487721600000, 6.616831],[1487808000000, 6.596547],[1487894400000, 6.603532],[1487980800000, 6.639163],[1488067200000, 6.639163],[1488153600000, 6.639163],[1488240000000, 6.638019]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });