$(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: [[1294272000000,3.04571],[1294358400000,3.01759],[1294444800000,3.01759],[1294531200000,3.01759],[1294617600000,3.01759],[1294704000000,2.97399],[1294790400000,2.98433],[1294876800000,2.99009],[1294963200000,3.0403],[1295049600000,3.07369],[1295136000000,3.07369],[1295222400000,3.07369],[1295308800000,3.06271],[1295395200000,3.07652],[1295481600000,3.10758],[1295568000000,3.09936],[1295654400000,3.11024],[1295740800000,3.11024],[1295827200000,3.11024],[1295913600000,3.12096],[1296000000000,3.12604],[1296086400000,3.14463],[1296172800000,3.15014],[1296259200000,3.15273],[1296345600000,3.15273],[1296432000000,3.15273]], 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: [[1294272000000, 3.045710],[1294272000000, 3.045710],[1294358400000, 3.017588],[1294444800000, 3.017588],[1294531200000, 3.017588],[1294617600000, 3.017588],[1294704000000, 2.973991],[1294790400000, 2.984325],[1294876800000, 2.990087],[1294963200000, 3.040304],[1295049600000, 3.073695],[1295136000000, 3.073695],[1295222400000, 3.073695],[1295308800000, 3.062710],[1295395200000, 3.076515],[1295481600000, 3.107577],[1295568000000, 3.099364],[1295654400000, 3.110245],[1295740800000, 3.110245],[1295827200000, 3.110245],[1295913600000, 3.120961],[1296000000000, 3.126040],[1296086400000, 3.144633],[1296172800000, 3.150136],[1296259200000, 3.152728],[1296345600000, 3.152728],[1296432000000, 3.152728]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });