$(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: [[1149120000000,1.88205],[1149206400000,1.86274],[1149292800000,1.8743],[1149379200000,1.8743],[1149465600000,1.8743],[1149552000000,1.89521],[1149638400000,1.87898],[1149724800000,1.8705],[1149811200000,1.8626],[1149897600000,1.85148],[1149984000000,1.85148],[1150070400000,1.85148],[1150156800000,1.85148],[1150243200000,1.83861],[1150329600000,1.83744],[1150416000000,1.84431],[1150502400000,1.85031],[1150588800000,1.85031],[1150675200000,1.85031],[1150761600000,1.84154],[1150848000000,1.83495],[1150934400000,1.84753],[1151020800000,1.84022],[1151107200000,1.82852],[1151193600000,1.82852],[1151280000000,1.82852],[1151366400000,1.83715],[1151452800000,1.83803],[1151539200000,1.83803],[1151625600000,1.83247]], 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: [[1149120000000, 1.882049],[1149120000000, 1.882049],[1149206400000, 1.862743],[1149292800000, 1.874298],[1149379200000, 1.874298],[1149465600000, 1.874298],[1149552000000, 1.895213],[1149638400000, 1.878978],[1149724800000, 1.870495],[1149811200000, 1.862597],[1149897600000, 1.851481],[1149984000000, 1.851481],[1150070400000, 1.851481],[1150156800000, 1.851481],[1150243200000, 1.838611],[1150329600000, 1.837441],[1150416000000, 1.844315],[1150502400000, 1.850311],[1150588800000, 1.850311],[1150675200000, 1.850311],[1150761600000, 1.841536],[1150848000000, 1.834954],[1150934400000, 1.847532],[1151020800000, 1.840220],[1151107200000, 1.828519],[1151193600000, 1.828519],[1151280000000, 1.828519],[1151366400000, 1.837148],[1151452800000, 1.838026],[1151539200000, 1.838026],[1151625600000, 1.832468]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });