javascript - 从面积样条图中删除线点

标签 javascript highcharts react-highcharts

我需要删除线中的点。我看过这个答案Stop HighCharts increasing width of line on hover但对我不起作用。

这是fiddle

这是我的代码

Highcharts.chart('graph_box', {
  chart: {
    type: 'areaspline',
    width: 300,
    height: 275
  },
  xAxis: {
    gridLineWidth: 0,
    labels: {
      enabled: false
    },
    categories: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
  },
  yAxis: {
    title: {
      text: ''
    },
    gridLineWidth: 0,
    labels: {
      enabled: false
    }
  },
  tooltip: {
    shared: true,
    valueSuffix: ' units'
  },
  credits: {
    enabled: false
  },
  plotOptions: {
    line: {
        marker: {
            enabled: false
        }
    },
    areaspline: {
      fillOpacity: 0.5
    },
    series: {
      lineWidth: 2,
      states: {
        hover: {
          enabled: false
        }
      }
    }
  },
  series: [
    {
      lineColor: '#8b8bff',
      color: '#c5c6ff',
      lineWidth: '4px',
      data: [3, 8, 9, 5, 4, 10, 12, 6, 7, 1, 4, 6]
    }
  ]
})

有人可以帮忙吗!!

最佳答案

可以通过以下方式禁用系列标记:

        plotOptions: {
            line: {
                marker: {
                    enabled: false
                },
                states: {
                    hover: {
                        enabled: false
                    }
                }
            }
        },

现场演示:http://jsfiddle.net/BlackLabel/4o023vxg/

API:https://api.highcharts.com/highcharts/plotOptions.line.states.hover.enabled

关于javascript - 从面积样条图中删除线点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54898827/

相关文章:

javascript - SlickGrid:判断行是否被选中

javascript - Photoshop 脚本 - 如何获取图层集(组)可见部分的边界?

javascript - 如何在php中显示或隐藏标题

javascript - 使用 highcharts-ng 进行 Angular 渲染 80+

javascript - 如何在面积图中组合 2 个系列 - Highchart

javascript - React-highcharts 滚动条功能不起作用

javascript - 拖放情节线 React-Highcharts

javascript - 在react-redux-promise应用程序中解析XML

javascript - 如何以 ECMAScript 2015 方式正确导入带有 Backbone-boilerplate 的 HighCharts?

highcharts - ReactJS 中的错误 - 找不到模块 : Can't resolve 'highcharts'