1
我一直試圖讓x軸顯示文本軸標籤。示例在這裏https://jsfiddle.net/z4aZ4/859/ 我想讓「問題1」顯示在x軸上。此刻顯示「南」。NVD3中分組/堆積條形圖的文本軸標籤
var data =
[
{
"key": "Yes",
"color": "#d67777",
"values": [
{
"x" : "Question 1" ,
"y" : 70
} ,
{
"x" : "Question 2" ,
"y" : 65
}
]
},
{
"key": "No",
"color": "#4f99b4",
"values": [
{
"x" : "Question 1" ,
"y" : 30
} ,
{
"x" : "Question 2" ,
"y" : 35
}
]
}
]
像一個魅力工作 - 非常感謝 – orbital