$(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: [[1109635200000,2.03416],[1109721600000,2.02461],[1109808000000,2.02052],[1109894400000,2.01491],[1109980800000,2.01468],[1110067200000,2.01215],[1110153600000,2.01215],[1110240000000,2.01215],[1110326400000,2.01215],[1110412800000,2.04924],[1110499200000,2.04909],[1110585600000,2.0615],[1110672000000,2.0615],[1110758400000,2.0615],[1110844800000,2.05819],[1110931200000,2.04639],[1111017600000,2.04666],[1111104000000,2.05386],[1111190400000,2.04558],[1111276800000,2.04558],[1111363200000,2.04558],[1111449600000,null],[1111536000000,2.01754],[1111622400000,2.00023],[1111708800000,1.98904],[1111795200000,1.98904],[1111881600000,1.98904],[1111968000000,1.98904],[1112054400000,1.98172],[1112140800000,1.98002],[1112227200000,1.98191]], 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: [[1109635200000, 2.034165],[1109635200000, 2.034165],[1109721600000, 2.024606],[1109808000000, 2.020516],[1109894400000, 2.014907],[1109980800000, 2.014678],[1110067200000, 2.012153],[1110153600000, 2.012153],[1110240000000, 2.012153],[1110326400000, 2.012153],[1110412800000, 2.049244],[1110499200000, 2.049089],[1110585600000, 2.061503],[1110672000000, 2.061503],[1110758400000, 2.061503],[1110844800000, 2.058190],[1110931200000, 2.046386],[1111017600000, 2.046665],[1111104000000, 2.053859],[1111190400000, 2.045578],[1111276800000, 2.045578],[1111363200000, 2.045578],[1111536000000, 2.017541],[1111622400000, 2.000227],[1111708800000, 1.989040],[1111795200000, 1.989040],[1111881600000, 1.989040],[1111968000000, 1.989040],[1112054400000, 1.981725],[1112140800000, 1.980016],[1112227200000, 1.981910]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });