简体   繁体   中英

Angular2 highcharts points not appearing

I am using angular2-highcharts chart module for my angular2 web application.

When graph < 7000 points, the line and points display as intended. However, after ~>7000 points, the graph sometimes does not render a line, but if I hover over the graph, the tooltip for the points are shown.

I tried turboThreshold, but it does not do anything.

Any suggestions?

显示工具提示的未渲染线图

--- Code ---

this.highchart_graph_expanded = {
  title: {
    text: ExpandedText
  },
  series: _series,
  legend: {
    enabled: true
  },
  yAxis: {
    visible: true,
  },
  plotOptions: {
    series: {
      states: {
        hover: {
          enabled: false // hover
        },
      },
      animation: false
    },
    turboThreshold: 0, // allow render more than 10000 points
  },
  rangeSelector: {
    enabled: false,
    inputEnabled: true,
  },
  xAxis: {
    type: 'datetime'
  },
};

_series = {
  data: seriesData, // [ [x,y], [x,y] ]
  name: "title",
};

angular2-highcharts is not an official Highcharts wrapper and it's possible that it doesn't support boost module.

You can also try the official angular wrapper: https://www.npmjs.com/package/highcharts-angular (it's not reported that this problem occurs while using it).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM