0
代替グリッドと通常グリッドの色を交換したいのですが、その達成方法は?ハイチャートでグリッドの代替色を変更する方法
私の作業jsfiddleは下回っている
function aoassortmentschart() {
$(function() {
$('#ao-assortments-container').highcharts({
chart: {
type: 'column',
inverted: true,
verticalAlign: "center"
},
credits: {
enabled: false
},
title: null,
xAxis: {
alternateGridColor: '#F7F7F7',
offset: 120,
categories: ["5 CLUSTERS", "4 CLUSTERS", "3 CLUSTERS", "2 CLUSTERS", "1 CLUSTER"],
tickWidth: 0,
lineWidth: 0,
min: 0,
max: 4,
labels: {
enabled: true,
useHTML: true,
x: 100,
formatter: function() {
return '<div><input type="radio" class="ao-assortment-radio" style="margin-right: 10px" size="10" name="assortmentClusterValue"/><span class="ao-assortment-clustertitle">' + this.value + '</span></div>'
}
}
},
yAxis: {
min: 0,
max: 250,
tickInterval: 50,
title: null,
gridLineColor: '#ede9e9'
},
legend: {
enabled: true,
layout: 'horizontal',
align: 'bottom',
width: 75,
x: 30,
y: 0,
borderWidth: 0,
symbolHeight: "0",
borderWidth: "0",
useHTML: true,
labelFormatter: function() {
return '<div class="ao-assortment-title"><span class="ao-assortment-legend-shape"> </span> Sales </div>'
}
},
plotOptions: {
series: {
pointWidth: 31,
allowPointSelect: false,
marginLeft: 50,
dataLabels: {
align: 'center',
enabled: true,
useHTML: true,
x: -30,
formatter: function() {
return "$ " + this.y
},
style: {
fontWeight: "normal",
textAlign: "center",
color: "#fff"
}
}
}
},
series: [{
name: "Clusters",
data: [200, 120, 240, 170, 100],
color: "#60B3D1"
}]
});
});}
ワーキングjsfiddleは私もグリッドのライトグレーの色を持っているhere
ですが、私は色がために適用することを望みます奇数行、
助けていただければ幸いです!ありがとうございます。
感謝!!出来た :) – Sarav