http://www.hcharts.cn/docs/index.php?doc=basic-axis
A: 針對highcharts圖表組件內(nèi)的圖例legend展開講述,圖例的顯示位置調(diào)整:
一、將圖例Legend放于圖表右側(cè)
1、設(shè)置chart的marginRight屬性值
chart: {
marginRight: 120;
},
2、設(shè)置legend圖例屬性值如下
legend: {
align: 'right', //水平方向位置
verticalAlign: 'top', //垂直方向位置
x: 0, //距離x軸的距離
y: 100 //距離Y軸的距離
},
二、將圖例放于圖表左上角
1、設(shè)置legend的屬性
legend: {
align: 'left', //水平方向位置
verticalAlign: 'top', //垂直方向位置
x: 0, //距離x軸的距離
y: 0 //距離Y軸的距離
},
三、將圖例放于圖表上方中央
1、設(shè)置legend屬性如下
legend: {
align: 'center', //水平方向位置
verticalAlign: 'top', //垂直方向位置
x: 0, //距離x軸的距離
y: 20 //距離Y軸的距離
},
四、將圖例放于下方中央
1、設(shè)置legend屬性如下
legend: {
align: 'center', //水平方向位置
verticalAlign: 'bottom', //垂直方向位置
x: 0, //距離x軸的距離
y: 0 //距離Y軸的距離
},
B:
關(guān)于折線圖線上的實心點去掉:
plotOptions: {
spline: {
marker: {
enabled: false
}
}
},
C:
不顯示highcharts的logo:
credits: {
enabled: false //不顯示LOGO
},
D:
x軸: 刻度值的位置:tickmarkPlacement:
僅適用于類別軸。如果設(shè)置為on
刻度線位于在類別名稱的中心,如果設(shè)置為between
刻度線位于類別名稱之間。如果刻度線間隔數(shù)為1,其默認值是between
,否則默認只是on
默認是: "null"
E:
xAxis相關(guān)參數(shù): http://www.cnblogs.com/xiami303/p/3445218.html