小编use*_*717的帖子

如何强制Highcharts在Legend和Series中使用相同的符号?

我尝试绘制具有特定符号的多个系列(Highcharts标准符号).但是系列和传奇中的符号不​​匹配.在系列中它们被正确显示,但在传说中它们是随机的......

示例:http://jsfiddle.net/ogkh77r7/1/

$(function () {
    var chart = new Highcharts.Chart({
        "chart":{
        "zoomType":"xy", 
        "renderTo":"container"
    }, 
    "title":{
        "text":null
    }, 
    "subtitle":{
        "text":"text"
    }, 
    "xAxis":{
        "min": - 14, 
        "max":25, 
        "title":{
            "text":"text"
        }, 
        "tickPositions":[ - 14, - 10, - 5, 0, 5, 10, 15, 20, 25], 
        "plotLines":[{
            "color":"#C0D0E0", 
            "width":1, 
            "value": - 14}]
    }, 
    "yAxis":{
        "title":{
            "text":"text"
        }, 
        "min":0, 
        "max":967
    }, 
    "plotOptions":{
        "series":{
            "marker":{
                "enabled":true
            }
        }
    }, 
    "tooltip":{
        "shared":false, 
        "useHTML":true, 
        "formatter":null, 
        "style":{
            "border":"none !important", 
            "padding":"0px", 
            "font-size":"1em"
        }
    }, 
    "series":[{
            "type":"line", 
            "name":"s1", 
            "zIndex":20, …
Run Code Online (Sandbox Code Playgroud)

javascript highcharts

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

标签 统计

highcharts ×1

javascript ×1