$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1154390400000,1.86728],[1154476800000,1.86611],[1154563200000,1.87181],[1154649600000,1.86932],[1154736000000,1.87093],[1154822400000,1.87093],[1154908800000,1.87093],[1154995200000,1.87942],[1155081600000,1.87781],[1155168000000,1.88366],[1155254400000,1.88044],[1155340800000,1.86845],[1155427200000,1.86845],[1155513600000,1.86845],[1155600000000,1.86011],[1155686400000,1.86113],[1155772800000,1.87108],[1155859200000,1.88366],[1155945600000,1.8724],[1156032000000,1.8724],[1156118400000,1.8724],[1156204800000,1.88951],[1156291200000,1.87386],[1156377600000,1.87386],[1156464000000,1.87386],[1156550400000,1.87386],[1156636800000,1.87386],[1156723200000,1.87386],[1156809600000,1.8721],[1156896000000,1.87327],[1156982400000,1.87474]], 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: [[1154390400000, 1.867277],[1154390400000, 1.867277],[1154476800000, 1.866107],[1154563200000, 1.871811],[1154649600000, 1.869325],[1154736000000, 1.870934],[1154822400000, 1.870934],[1154908800000, 1.870934],[1154995200000, 1.879417],[1155081600000, 1.877808],[1155168000000, 1.883658],[1155254400000, 1.880441],[1155340800000, 1.868447],[1155427200000, 1.868447],[1155513600000, 1.868447],[1155600000000, 1.860111],[1155686400000, 1.861134],[1155772800000, 1.871080],[1155859200000, 1.883658],[1155945600000, 1.872396],[1156032000000, 1.872396],[1156118400000, 1.872396],[1156204800000, 1.889509],[1156291200000, 1.873859],[1156377600000, 1.873859],[1156464000000, 1.873859],[1156550400000, 1.873859],[1156636800000, 1.873859],[1156723200000, 1.873859],[1156809600000, 1.872104],[1156896000000, 1.873274],[1156982400000, 1.874736]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });