$(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: [[1409529600000,5.1928],[1409616000000,5.00895],[1409702400000,4.94794],[1409788800000,4.75974],[1409875200000,null],[1409961600000,4.83321],[1410048000000,4.83321],[1410134400000,4.83321],[1410220800000,4.80829],[1410307200000,4.8469],[1410393600000,4.83967],[1410480000000,4.85908],[1410566400000,4.84878],[1410652800000,4.84878],[1410739200000,4.84878],[1410825600000,4.83231],[1410912000000,4.85665],[1410998400000,4.90625],[1411084800000,5.03749],[1411171200000,null],[1411257600000,5.00823],[1411344000000,5.00823],[1411430400000,null],[1411516800000,5.03195],[1411603200000,4.83309],[1411689600000,4.8107],[1411776000000,4.75256],[1411862400000,4.75256],[1411948800000,4.75256],[1412035200000,4.75981]], 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: [[1409529600000, 5.192798],[1409529600000, 5.192798],[1409616000000, 5.008947],[1409702400000, 4.947944],[1409788800000, 4.759745],[1409961600000, 4.833206],[1410048000000, 4.833206],[1410134400000, 4.833206],[1410220800000, 4.808289],[1410307200000, 4.846902],[1410393600000, 4.839668],[1410480000000, 4.859084],[1410566400000, 4.848780],[1410652800000, 4.848780],[1410739200000, 4.848780],[1410825600000, 4.832311],[1410912000000, 4.856646],[1410998400000, 4.906247],[1411084800000, 5.037495],[1411257600000, 5.008230],[1411344000000, 5.008230],[1411516800000, 5.031949],[1411603200000, 4.833091],[1411689600000, 4.810705],[1411776000000, 4.752565],[1411862400000, 4.752565],[1411948800000, 4.752565],[1412035200000, 4.759815]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });