显示x轴线,但隐藏所有数据点

问题描述 投票:0回答:1

我希望显示第二个日期时间x轴,但是我不希望看到该系列中的所有点。我只想要x轴线。我怎样才能做到这一点?

 Highcharts.chart("container", {
      chart: {
        type: "line",
      },
      xAxis: [
        {
          type: "category"
        },
        {
          type: "datetime",
        }
      ]
    });

https://codepen.io/austeng/pen/mdJrRRm

javascript highcharts
1个回答
0
投票

查看此JS小提琴:https://jsfiddle.net/prak_mtl/fd4buz19/4/

    plotOptions: {
            series: {
                 marker: {
                    enabled: false, //this line will make them disappear.
                    symbol: 'circle', //states what kind of marker shape you want Eg: circle, square, etc,.
                    states: {
                        hover: {
                            enabled: true //this says whether to show them or not when hovered.
                        }
                    }
                }
            }
        }

希望对您有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.