$(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: [[1225497600000,2.13878],[1225584000000,2.13878],[1225670400000,2.13878],[1225756800000,2.15079],[1225843200000,2.16319],[1225929600000,2.17025],[1226016000000,2.14469],[1226102400000,2.14216],[1226188800000,2.14216],[1226275200000,2.14216],[1226361600000,2.15811],[1226448000000,2.1323],[1226534400000,2.09753],[1226620800000,2.09738],[1226707200000,2.12338],[1226793600000,2.12338],[1226880000000,2.12338],[1226966400000,2.12439],[1227052800000,2.15674],[1227139200000,2.19309],[1227225600000,2.17901],[1227312000000,2.25254],[1227398400000,2.25254],[1227484800000,2.25254],[1227571200000,2.32876],[1227657600000,2.45237],[1227744000000,2.52564],[1227830400000,2.5188],[1227916800000,2.53512],[1228003200000,2.53512]], 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: [[1225497600000, 2.138778],[1225497600000, 2.138778],[1225584000000, 2.138778],[1225670400000, 2.138778],[1225756800000, 2.150789],[1225843200000, 2.163189],[1225929600000, 2.170247],[1226016000000, 2.144693],[1226102400000, 2.142157],[1226188800000, 2.142157],[1226275200000, 2.142157],[1226361600000, 2.158108],[1226448000000, 2.132302],[1226534400000, 2.097527],[1226620800000, 2.097379],[1226707200000, 2.123378],[1226793600000, 2.123378],[1226880000000, 2.123378],[1226966400000, 2.124385],[1227052800000, 2.156741],[1227139200000, 2.193094],[1227225600000, 2.179013],[1227312000000, 2.252542],[1227398400000, 2.252542],[1227484800000, 2.252542],[1227571200000, 2.328757],[1227657600000, 2.452374],[1227744000000, 2.525637],[1227830400000, 2.518803],[1227916800000, 2.535116],[1228003200000, 2.535116]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });