$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1485907200000,36.7964],[1485993600000,36.7988],[1486080000000,36.8325],[1486166400000,36.8],[1486252800000,36.8],[1486339200000,36.8],[1486425600000,37.0825],[1486512000000,36.6623],[1486598400000,36.4961],[1486684800000,36.6972],[1486771200000,36.8385],[1486857600000,36.8385],[1486944000000,36.8385],[1487030400000,36.7922],[1487116800000,36.8739],[1487203200000,36.439],[1487289600000,36.5541],[1487376000000,36.6172],[1487462400000,36.6172],[1487548800000,36.6172],[1487635200000,36.616],[1487721600000,36.5032],[1487808000000,36.3853],[1487894400000,36.3594],[1487980800000,36.5527],[1488067200000,36.5527],[1488153600000,36.5527],[1488240000000,36.5965]], 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, 36.796446],[1485907200000, 36.796446],[1485993600000, 36.798757],[1486080000000, 36.832537],[1486166400000, 36.800027],[1486252800000, 36.800027],[1486339200000, 36.800027],[1486425600000, 37.082517],[1486512000000, 36.662314],[1486598400000, 36.496126],[1486684800000, 36.697155],[1486771200000, 36.838523],[1486857600000, 36.838523],[1486944000000, 36.838523],[1487030400000, 36.792192],[1487116800000, 36.873862],[1487203200000, 36.439039],[1487289600000, 36.554133],[1487376000000, 36.617161],[1487462400000, 36.617161],[1487548800000, 36.617161],[1487635200000, 36.616024],[1487721600000, 36.503222],[1487808000000, 36.385314],[1487894400000, 36.359404],[1487980800000, 36.552675],[1488067200000, 36.552675],[1488153600000, 36.552675],[1488240000000, 36.596503]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });