我有一个折线图,可以在这个小提琴http://jsfiddle.net/qjmjd34d/5/上看到
并使用此代码:
Highcharts.chart('container', {
plotOptions: {
series: {
color: 'purple'
}
},
series: [{
data: [{x: 1, y: 435, color:'blue'},
{x: 2, y: 437, color:'blue'},
{x: 3, y: 455, color:'blue'},
{x: 4, y: 475, color:'blue'},
{x: 5, y: 555, color:'blue'},
{x: 6, y: 435, color:'blue'}]
}]
});
Run Code Online (Sandbox Code Playgroud)
然而,修改点的颜色是无知的,如何改变它们之间的线的颜色?
假设我希望小提琴上给定示例中的线仅在 x = 3 和 x = 5 之间为绿色 - 这怎么可能?
我有一个看起来像这样的对象:
{
"qA": [
{
"question": "How deep is the ocean",
"answer": [
"quite deep",
"very deep",
"no deep at all"
]
},
{
"question": "How high is the sky",
"answer": [
"real high",
"high enough",
"not that high"
]
}
]
}
Run Code Online (Sandbox Code Playgroud)
我想把它加载到ul
问题是标题的地方ul
,答案就是它li
.我怎么做?