2017-08-08 90 views

回答

0

開發工具 - >源 - >發現元素的ID - >搜索源ID - >找到下面的代碼。

$('#highchartload-closing-day').highcharts({ 
chart: { 
    zoomType: 'x' 
}, 
title: { 
    text: '' 
}, 
subtitle: { 
    text: 'Click and drag in the plot area to zoom in' 
}, 
xAxis: [{ 
    categories: date, 
    type: 'datetime', 
    crosshair: true 
}], 
yAxis: [{ 
    labels: { 
    format: '{value} %', 
    style: { 
    color: '#FA890F' 
    } 
    }, 
    title: { 
    text: 'Rate of interest', 
    style: { 
    color: Highcharts.getOptions().colors[1] 
    } 
    } 
}], 
series: [{ 
    name: 'Rate of Interest', 
    type: 'column', 
    yAxis: 0, 
    data: rate_of_interest, 
    color: '#FFC46D', 
    tooltip: { 
    valueSuffix: ' %' 
    } 
}] 
});