0
是否可以在區域中製作區域圖?我注意到有一個「堆棧」插件。下面的圖片是我想創建的效果。只有一個問題,堆棧插件自動添加組件數據。我不想那樣。我只想要填充效果。 Flot區域圖表
我試圖性能之間的填充,而是讓一個惱人的混色(見下文):
在堆棧的例子中,顏色不融合的。這是我要做的視覺效果。
UPDATE 我用來做它的工作代碼爲:
var dataSet = [
{id: "A", label: "Demand (kW)", color: "#2980B9", data: d, lines: { show: true, lineWidth: 1, fill: .5}},
{id: "B", label: "Demand (kW)", color: "#D35400", data: d2, lines: { show: true, lineWidth: 1, fill: .5 }, fillBetween: "A"},
{id: "C", label: "Demand (kW)", color: "#C0392B", data: d3, lines: { show: true, lineWidth: 1, fill: .5 }, fillBetween: "B"}
]
請參閱上面的更新。這種作品,但顏色不符合我想要的方式。 –
@DiodeDan [此問題](https://groups.google.com/forum/#!topic/flot-graphs/JcxMpTp-HHs)位於[flot google group](https://groups.google.com/論壇/#!forum/flot-graphs)討論如何讓它工作。你應該能夠使用相同的插件而不用堆疊。 – mechenbier
@DiodeDan在做了更多的挖掘之後,我想我找到了一個更簡單的方法。我編輯了我的答案,以表明我是如何運作的。 – mechenbier