$(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: [[1406851200000,4.69518],[1406937600000,4.63556],[1407024000000,4.63556],[1407110400000,4.63556],[1407196800000,4.72637],[1407283200000,4.78042],[1407369600000,4.78837],[1407456000000,4.8152],[1407542400000,4.88088],[1407628800000,4.88088],[1407715200000,4.88088],[1407801600000,4.97319],[1407888000000,5.09393],[1407974400000,5.06762],[1408060800000,5.0656],[1408147200000,5.08749],[1408233600000,5.08749],[1408320000000,5.08749],[1408406400000,5.06909],[1408492800000,5.0204],[1408579200000,5.11414],[1408665600000,5.0449],[1408752000000,5.13358],[1408838400000,5.13358],[1408924800000,5.13358],[1409011200000,5.13358],[1409097600000,5.22197],[1409184000000,5.30728],[1409270400000,5.12818],[1409356800000,5.1928]], 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: [[1406851200000, 4.695181],[1406851200000, 4.695181],[1406937600000, 4.635563],[1407024000000, 4.635563],[1407110400000, 4.635563],[1407196800000, 4.726369],[1407283200000, 4.780418],[1407369600000, 4.788374],[1407456000000, 4.815202],[1407542400000, 4.880883],[1407628800000, 4.880883],[1407715200000, 4.880883],[1407801600000, 4.973187],[1407888000000, 5.093926],[1407974400000, 5.067623],[1408060800000, 5.065597],[1408147200000, 5.087492],[1408233600000, 5.087492],[1408320000000, 5.087492],[1408406400000, 5.069088],[1408492800000, 5.020399],[1408579200000, 5.114138],[1408665600000, 5.044900],[1408752000000, 5.133584],[1408838400000, 5.133584],[1408924800000, 5.133584],[1409011200000, 5.133584],[1409097600000, 5.221970],[1409184000000, 5.307279],[1409270400000, 5.128178],[1409356800000, 5.192798]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });