$(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: [[1277942400000,2.80949],[1278028800000,2.82375],[1278115200000,2.8748],[1278201600000,2.8748],[1278288000000,2.8748],[1278374400000,2.87058],[1278460800000,2.88113],[1278547200000,2.87795],[1278633600000,2.89873],[1278720000000,2.89273],[1278806400000,2.89273],[1278892800000,2.89273],[1278979200000,2.87764],[1279065600000,2.87659],[1279152000000,2.90707],[1279238400000,2.93534],[1279324800000,2.97432],[1279411200000,2.97432],[1279497600000,2.97432],[1279584000000,2.9643],[1279670400000,2.93796],[1279756800000,2.93153],[1279843200000,2.93896],[1279929600000,2.94934],[1280016000000,2.94934],[1280102400000,2.94934],[1280188800000,2.95681],[1280275200000,2.97976],[1280361600000,2.97001],[1280448000000,2.98761],[1280534400000,2.97805]], 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: [[1277942400000, 2.809486],[1277942400000, 2.809486],[1278028800000, 2.823750],[1278115200000, 2.874796],[1278201600000, 2.874796],[1278288000000, 2.874796],[1278374400000, 2.870575],[1278460800000, 2.881133],[1278547200000, 2.877948],[1278633600000, 2.898732],[1278720000000, 2.892734],[1278806400000, 2.892734],[1278892800000, 2.892734],[1278979200000, 2.877636],[1279065600000, 2.876586],[1279152000000, 2.907069],[1279238400000, 2.935341],[1279324800000, 2.974322],[1279411200000, 2.974322],[1279497600000, 2.974322],[1279584000000, 2.964297],[1279670400000, 2.937961],[1279756800000, 2.931525],[1279843200000, 2.938961],[1279929600000, 2.949337],[1280016000000, 2.949337],[1280102400000, 2.949337],[1280188800000, 2.956813],[1280275200000, 2.979759],[1280361600000, 2.970009],[1280448000000, 2.987611],[1280534400000, 2.978050]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });