$(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: [[1414800000000,4.72523],[1414886400000,4.72523],[1414972800000,4.72523],[1415059200000,4.6975],[1415145600000,4.68703],[1415232000000,4.89173],[1415318400000,5.04422],[1415404800000,5.24587],[1415491200000,5.24587],[1415577600000,5.24587],[1415664000000,5.31362],[1415750400000,5.70323],[1415836800000,5.66709],[1415923200000,5.61824],[1416009600000,5.56004],[1416096000000,5.56004],[1416182400000,5.56004],[1416268800000,null],[1416355200000,5.5228],[1416441600000,5.50898],[1416528000000,5.49861],[1416614400000,5.48227],[1416700800000,5.48227],[1416787200000,5.48227],[1416873600000,5.41836],[1416960000000,5.39413],[1417046400000,5.38767],[1417132800000,5.40755],[1417219200000,5.41058],[1417305600000,5.41058]], 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: [[1414800000000, 4.725229],[1414800000000, 4.725229],[1414886400000, 4.725229],[1414972800000, 4.725229],[1415059200000, 4.697496],[1415145600000, 4.687029],[1415232000000, 4.891729],[1415318400000, 5.044219],[1415404800000, 5.245866],[1415491200000, 5.245866],[1415577600000, 5.245866],[1415664000000, 5.313623],[1415750400000, 5.703233],[1415836800000, 5.667091],[1415923200000, 5.618238],[1416009600000, 5.560040],[1416096000000, 5.560040],[1416182400000, 5.560040],[1416355200000, 5.522799],[1416441600000, 5.508983],[1416528000000, 5.498608],[1416614400000, 5.482268],[1416700800000, 5.482268],[1416787200000, 5.482268],[1416873600000, 5.418361],[1416960000000, 5.394128],[1417046400000, 5.387666],[1417132800000, 5.407550],[1417219200000, 5.410579],[1417305600000, 5.410579]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });