score:0
Accepted answer
i fixed it by this changes:
tickpositioner: function () {
let positions = [],
tick = math.floor(this.datamin),
increment = math.ceil((this.datamax - this.datamin) / 10)
if (this.datamax === 0) {
positions = [0]
} else if (this.datamax !== null && this.datamin !== null) {
for (tick; tick <= this.datamax; tick += increment) {
positions.push(tick)
}
}
return positions
}
score:1
notice that for one point all your variables (tick, increment, datamax) are equal 0, so as a consequence this for
is an infinity loop.
you can check it here: https://jsfiddle.net/blacklabel/35suo8k0/
as a solution you can use this code:
xaxis: {
tickpositioner() {
let positions = [],
tick = math.floor(this.datamin),
increment = math.ceil((this.datamax - this.datamin) / 10)
if (this.datamax && this.datamin) {
for (tick; tick <= this.datamax; tick += increment) {
positions.push(tick)
}
}
return positions
}
},
i changed the if condition - now it checks if the datamax and datamin exist.
Source: stackoverflow.com
Related Query
- Overlay 2 series of data of different length with highcharts
- Highcharts series visibility with csv data source
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts doesn't display series with lots of data points
- Highcharts data series issue with ajax/json and PHP
- Highcharts with JSON data and multiple series
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts not displaying series data for graph with multiple Y-axes
- Highcharts problem with xAxis using multiple series
- Several Series with the same xAxis data in HighChart
- Highcharts show the same yAxis start and end value with multiple data series
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- HighCharts column chart populated with series data from a function
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- Highcharts same types of data with different series
- HighCharts activity gauge populated with series data from a function
- Loading json data to highcharts with multiple series
- Highcharts : using same div to load a chart multiple times with different series data
- Highcharts multiple series with missing Data Points
- HighCharts basic bar chart provide the xAxis categories with Series
- HighCharts BoxPlot With Multiple Series Having Single Data
- show two different series with different start intervals with the same xAxis highcharts
- Highcharts AreaRange Chart issues with xAxis and last data point label
- highcharts column : add dynamically series with drilldown data
- Highcharts cloud issue with data source when duplicating chart
- Highcharts does not display years on Xaxis when data with NULL values
- How to update just data attribute under series in highcharts with json?
- Adding HighCharts Data Series With Property Names
- Highcharts loading all data with xaxis simplified
- How to label xAxis with series data using Highcharts?
More Query from same tag
- How to show popup on highchart column click
- How can i change the length of the title that it is dynamic?
- what should be the initial dataset from millions of data points for stock line highcharts
- Labels on bar chart missing
- HighCharts Angular - Setting chart data from API
- Hightcharts Packed Buble chartt for angular 6
- Highstock/Highchart scatter points in combined graph
- Display start and end date range in timeseries LineChart using HighCharts
- Highcharts mobile (and window) resizing. Axis overlapping
- Customize Stacked column chart in highChart
- How to auto save highcharts as image in specific folder
- making series in Highcharts clickable
- Highstock/highcharts show multiple y-axis values in single tooltip
- Highcharts display series.name on X Axis
- How to get work range selector with Highcharts with a function?
- How to popup a file dialog/print dialog in a html file that is rendered in a WebEngineView?
- highcharts add percent sign in data values
- Receiving incorrect datetimes when using milliseconds for x-axis?
- How to implement mapbubble in highmaps using custom maps json generated using qgis?
- Can we add negative color in highcharts stockchart based on a variable other that data?
- How to change axis label size when exporting in Highcharts / Highstock
- Highcharts- Creating a dynamic x-axis to maintain bar spacing with less data points but maintain x-axis "width"
- json in multiple pie chart using Highchart
- Hightcharts - Not showing column datalabels when chart type is column
- Format tooltip numbers in Highcharts
- use on click for pie react-highcharts without overriding default onclick function
- Align titles for multiple axis in Highstock
- Highchart and DWR Comet
- Dynamically Change X-axis label name in HighCharts
- Using modified JS version in Highcharts to bring back the pre-3.0 export buttons