如果你看看我的http://jsfiddle.net/WOUNDEDStevenJones/oe1vcmqj/1/,圖表上的紅色標籤上有微妙的白色光暈(至少在Chrome和FF中)。我如何去除白光?或者最壞的情況下,至少將顏色改爲藍色,以便混合?刪除highcharts數據標籤上的陰影/背景發光?
我使用shadow
,backgroundColor
和其他屬性從他們的API(http://api.highcharts.com/highcharts#plotOptions.column.dataLabels)嘗試過,但無法弄清是怎麼定義的紅色文字背後的光芒。
plotOptions: {
columnrange: {
dataLabels: {
enabled: true,
color: 'red',
inside: false,
xHigh: -45,
xLow: -9999999,
shadow: "#ff0000",
formatter: function() {
if (this.point.high) {
var myDate = new Date(this.y);
var newDateMs = Date.UTC(myDate.getUTCFullYear(),myDate.getUTCMonth(),myDate.getUTCDate());
return '<b>' + Highcharts.dateFormat('%m/%e',newDateMs) + '</b>';
} else {
return null;
}
}
}
}
}
試文字陰影:無; – Math3w 2015-03-13 06:07:47