$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1109635200000,5.299],[1109721600000,5.2988],[1109808000000,5.2986],[1109894400000,5.2986],[1109980800000,5.298],[1110067200000,5.298],[1110153600000,5.298],[1110240000000,5.298],[1110326400000,5.298],[1110412800000,5.2975],[1110499200000,5.2971],[1110585600000,5.296],[1110672000000,5.296],[1110758400000,5.296],[1110844800000,5.2949],[1110931200000,5.294],[1111017600000,5.2937],[1111104000000,5.293],[1111190400000,5.2915],[1111276800000,5.2915],[1111363200000,5.2915],[1111449600000,null],[1111536000000,5.2908],[1111622400000,5.2808],[1111708800000,5.2811],[1111795200000,5.2811],[1111881600000,5.2811],[1111968000000,5.2811],[1112054400000,5.2811],[1112140800000,5.2809],[1112227200000,5.2808]], 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, 5.299000],[1109635200000, 5.299000],[1109721600000, 5.298800],[1109808000000, 5.298600],[1109894400000, 5.298600],[1109980800000, 5.298000],[1110067200000, 5.298000],[1110153600000, 5.298000],[1110240000000, 5.298000],[1110326400000, 5.298000],[1110412800000, 5.297500],[1110499200000, 5.297100],[1110585600000, 5.296000],[1110672000000, 5.296000],[1110758400000, 5.296000],[1110844800000, 5.294900],[1110931200000, 5.294000],[1111017600000, 5.293700],[1111104000000, 5.293000],[1111190400000, 5.291500],[1111276800000, 5.291500],[1111363200000, 5.291500],[1111536000000, 5.290800],[1111622400000, 5.280800],[1111708800000, 5.281100],[1111795200000, 5.281100],[1111881600000, 5.281100],[1111968000000, 5.281100],[1112054400000, 5.281100],[1112140800000, 5.280900],[1112227200000, 5.280800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });