$(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: [[1417392000000,5.41058],[1417478400000,5.44339],[1417564800000,5.4552],[1417651200000,5.46415],[1417737600000,5.4629],[1417824000000,5.49641],[1417910400000,5.49641],[1417996800000,5.49641],[1418083200000,5.55864],[1418169600000,5.53027],[1418256000000,5.60524],[1418342400000,5.62474],[1418428800000,5.65491],[1418515200000,5.65491],[1418601600000,5.65491],[1418688000000,5.68283],[1418774400000,5.67674],[1418860800000,5.72927],[1418947200000,null],[1419033600000,5.61071],[1419120000000,5.61071],[1419206400000,5.61071],[1419292800000,5.63821],[1419379200000,5.56062],[1419465600000,5.57814],[1419552000000,5.5811],[1419638400000,5.58039],[1419724800000,5.58039],[1419811200000,5.58039],[1419897600000,5.57024],[1419984000000,5.57024]], 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: [[1417392000000, 5.410579],[1417392000000, 5.410579],[1417478400000, 5.443385],[1417564800000, 5.455203],[1417651200000, 5.464150],[1417737600000, 5.462902],[1417824000000, 5.496415],[1417910400000, 5.496415],[1417996800000, 5.496415],[1418083200000, 5.558643],[1418169600000, 5.530271],[1418256000000, 5.605240],[1418342400000, 5.624745],[1418428800000, 5.654906],[1418515200000, 5.654906],[1418601600000, 5.654906],[1418688000000, 5.682830],[1418774400000, 5.676742],[1418860800000, 5.729268],[1419033600000, 5.610713],[1419120000000, 5.610713],[1419206400000, 5.610713],[1419292800000, 5.638210],[1419379200000, 5.560616],[1419465600000, 5.578138],[1419552000000, 5.581101],[1419638400000, 5.580392],[1419724800000, 5.580392],[1419811200000, 5.580392],[1419897600000, 5.570235],[1419984000000, 5.570235]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });