$(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: [[1159660800000,1.85163],[1159747200000,1.85163],[1159833600000,1.85528],[1159920000000,1.86289],[1160006400000,1.85514],[1160092800000,1.86055],[1160179200000,1.85221],[1160265600000,1.85221],[1160352000000,1.85221],[1160438400000,1.84329],[1160524800000,1.83378],[1160611200000,1.83451],[1160697600000,1.83276],[1160784000000,1.83554],[1160870400000,1.83554],[1160956800000,1.83554],[1161043200000,1.83042],[1161129600000,1.83174],[1161216000000,1.83451],[1161302400000,1.83715],[1161388800000,1.84549],[1161475200000,1.84549],[1161561600000,1.84549],[1161648000000,1.83642],[1161734400000,1.83422],[1161820800000,1.83993],[1161907200000,1.8506],[1161993600000,1.85499],[1162080000000,1.85499],[1162166400000,1.85499],[1162252800000,1.85996]], 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: [[1159660800000, 1.851628],[1159660800000, 1.851628],[1159747200000, 1.851628],[1159833600000, 1.855284],[1159920000000, 1.862890],[1160006400000, 1.855138],[1160092800000, 1.860549],[1160179200000, 1.852213],[1160265600000, 1.852213],[1160352000000, 1.852213],[1160438400000, 1.843291],[1160524800000, 1.833784],[1160611200000, 1.834515],[1160697600000, 1.832760],[1160784000000, 1.835539],[1160870400000, 1.835539],[1160956800000, 1.835539],[1161043200000, 1.830420],[1161129600000, 1.831737],[1161216000000, 1.834515],[1161302400000, 1.837148],[1161388800000, 1.845485],[1161475200000, 1.845485],[1161561600000, 1.845485],[1161648000000, 1.836417],[1161734400000, 1.834223],[1161820800000, 1.839927],[1161907200000, 1.850604],[1161993600000, 1.854992],[1162080000000, 1.854992],[1162166400000, 1.854992],[1162252800000, 1.859964]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });