$(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: [[1343779200000,2.84366],[1343865600000,2.8469],[1343952000000,2.85802],[1344038400000,2.83464],[1344124800000,2.83464],[1344211200000,2.83464],[1344297600000,2.86565],[1344384000000,2.87885],[1344470400000,2.8557],[1344556800000,2.8476],[1344643200000,2.83857],[1344729600000,2.83857],[1344816000000,2.83857],[1344902400000,2.8564],[1344988800000,2.85941],[1345075200000,2.84181],[1345161600000,2.84251],[1345248000000,2.85593],[1345334400000,2.85593],[1345420800000,2.85593],[1345507200000,2.84737],[1345593600000,2.877],[1345680000000,2.88163],[1345766400000,2.9057],[1345852800000,2.9057],[1345939200000,2.9057],[1346025600000,2.9057],[1346112000000,2.90061],[1346198400000,2.90478],[1346284800000,2.90408],[1346371200000,2.90385]], 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: [[1343779200000, 2.843663],[1343779200000, 2.843663],[1343865600000, 2.846904],[1343952000000, 2.858016],[1344038400000, 2.834635],[1344124800000, 2.834635],[1344211200000, 2.834635],[1344297600000, 2.865655],[1344384000000, 2.878850],[1344470400000, 2.855701],[1344556800000, 2.847599],[1344643200000, 2.838571],[1344729600000, 2.838571],[1344816000000, 2.838571],[1344902400000, 2.856396],[1344988800000, 2.859405],[1345075200000, 2.841812],[1345161600000, 2.842506],[1345248000000, 2.855933],[1345334400000, 2.855933],[1345420800000, 2.855933],[1345507200000, 2.847367],[1345593600000, 2.876998],[1345680000000, 2.881628],[1345766400000, 2.905704],[1345852800000, 2.905704],[1345939200000, 2.905704],[1346025600000, 2.905704],[1346112000000, 2.900611],[1346198400000, 2.904778],[1346284800000, 2.904083],[1346371200000, 2.903852]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });