0
教えてください。カテゴリと軸に特定の碑文のラベルの色を変更する方法 (categoryAxis.categoriesの= [「2016」、「2017」])ラベルの色を変更するには(categoryAxis.categories)?
教えてください。カテゴリと軸に特定の碑文のラベルの色を変更する方法 (categoryAxis.categoriesの= [「2016」、「2017」])ラベルの色を変更するには(categoryAxis.categories)?
あなたはどのように制御するcategoryAxis.labelsのvisual propertyを使用することができますラベルは見えます。
categoryAxis: {
categories: [1952, 1956, 1960, 1964, 1968, 1972, 1976, 1984, 1988, 1992, 1996, 2000, 2004, 2008, 2012],
labels: {
visual: function(e) {
var l = e.createVisual();
if (e.text == '1968' || e.text == '2000'){
l.children[0].options.fill.color = "#ff0000";
}
return l;
}
}
},