小编Roy*_*ysh的帖子

Highcharts - 更改点之间的线条颜色

我有一个折线图,可以在这个小提琴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 之间为绿色 - 这怎么可能?

javascript highcharts

2
推荐指数
1
解决办法
4582
查看次数

将Json转换为ul和li

我有一个看起来像这样的对象:

{
    "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.我怎么做?

html javascript jquery json

-3
推荐指数
1
解决办法
8381
查看次数

标签 统计

javascript ×2

highcharts ×1

html ×1

jquery ×1

json ×1