問題描述
谷歌圖表 ‑ 直方圖:刪除項目的水平劃分 (google charts ‑ histograms: remove horizontal division of items)
這是谷歌圖表直方圖的幾乎默認配置:
...
var options = {
title: 'Some histogram',
legend: { position: 'none' },
};
....
這是它呈現的內容:
我怎樣才能刪除小的水平分隔線(在屏幕截圖上指向)分隔形成直方圖的藍色“數據塊”?
參考解法
方法 1:
add histogram.hideBucketItems: true
to the options...
var options = {
title: 'Some histogram',
legend: { position: 'none' },
histogram: {
hideBucketItems: true
}
};
from the configuration options...
histogram.hideBucketItems
‑ Omit the thin divisions between the blocks of the histogram, making it into a series of solid bars.