我是Zingchart的新手,我遇到了一些問題。ZingChart預覽位置和着色
我想要一個帶有第二個圖表(或這裏預覽)的堆疊條形圖。
1.)我有問題的堆疊,當我爲它設置一個顏色,我沒有看到圖表中的差異 - 爲什麼? - (是否可以將顏色應用於每個單獨的條塊堆棧?)
2)如果我單擊背景但不在數據集上,則只能縮放。由於我設置了很多數據,我無法縮放。我能做些什麼,我可以在充滿數據的圖表上應用縮放?
3.)如何正確設置預覽/圖表的位置?無論我如何設置preview.position,只有y改變,而不是高度或x值。這也是愚蠢的,因爲我無法看到預覽的正確句柄。也試圖用邊緣來調整它,但也沒有成功。我想要在大圖上進行預覽。
以下是我與玩:http://jsfiddle.net/z1zwg6ae/1/
"graphset": [{
"type": "bar",
"x": "1%",
"y": "25%",
"height": "100%",
"background-color": "#fff",
"plot": {
"stacked": true,
"stack-type": "100%"
},
"scale-x": {
"line-color": "#555",
"line-width": "4px",
"zooming": true,
"guide": {
"visible": false
},
"tick": {
"line-color": "#333",
}
},
"chart": {
"position": "0 0"
},
"scale-y": {
"min-value": 0,
"max-value": 100
},
"scroll-x": {
"bar": {
"background-color": "#777"
},
"handle": {
"background-color": "#76DF20"
}
},
"zoom": {
"background-color": "#20DFC6"
},
"plot": {
"line-width": 10,
"max-trackers": 9999,
"mode": "normal",
"js-rule": "myfunc()",
"shadow": false,
"marker": {
"type": "none"
}
},
"preview": {
"height": 100,
"position": "200 100",
"width": "90%"
},
"plotarea": {
"adjust-layout": true,
"margin-right": 35
},
"series": [{