$(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: [[1217548800000,2.1906],[1217635200000,2.1854],[1217721600000,2.1854],[1217808000000,2.1854],[1217894400000,2.18428],[1217980800000,2.17293],[1218067200000,2.17166],[1218153600000,2.1709],[1218240000000,null],[1218326400000,null],[1218412800000,2.1152],[1218499200000,2.1065],[1218585600000,2.09159],[1218672000000,2.09077],[1218758400000,2.09133],[1218844800000,2.06636],[1218931200000,2.06636],[1219017600000,2.06636],[1219104000000,2.06247],[1219190400000,2.0589],[1219276800000,2.06698],[1219363200000,2.0782],[1219449600000,2.07723],[1219536000000,2.07723],[1219622400000,2.07723],[1219708800000,2.07723],[1219795200000,2.0487],[1219881600000,2.07242],[1219968000000,2.07298],[1220054400000,2.06814],[1220140800000,2.06814]], 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: [[1217548800000, 2.190595],[1217548800000, 2.190595],[1217635200000, 2.185403],[1217721600000, 2.185403],[1217808000000, 2.185403],[1217894400000, 2.184280],[1217980800000, 2.172925],[1218067200000, 2.171663],[1218153600000, 2.170905],[1218412800000, 2.115197],[1218499200000, 2.106497],[1218585600000, 2.091591],[1218672000000, 2.090771],[1218758400000, 2.091332],[1218844800000, 2.066360],[1218931200000, 2.066360],[1219017600000, 2.066360],[1219104000000, 2.062469],[1219190400000, 2.058895],[1219276800000, 2.066976],[1219363200000, 2.078199],[1219449600000, 2.077229],[1219536000000, 2.077229],[1219622400000, 2.077229],[1219708800000, 2.077229],[1219795200000, 2.048700],[1219881600000, 2.072418],[1219968000000, 2.072979],[1220054400000, 2.068141],[1220140800000, 2.068141]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });