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
- Highcharts download menu disabled when removing title
- Highcharts - how to put bubble chart in straight line?
- How can we plot Highcarts organization chart in R language?
- Add text to generated quadrant area by x and y plot lines , highcharts
- How to adjust line-height/ellipses in Highcharts axis labels
- how to put some data option key url on Highchart?
- Highstock / Highcharts - Flag linecolor masking line below it
- Highcharts funnel graph constructor
- How can I add customized y axis in highchart basic bar?
- building highcarts options in views.py
- Rails 3: Creating compact array for highcharts includes nil, but shouldn't
- Highcharts - Click event not firing outside of plot area
- Not able to getting highcharts legend label in order
- change distance of x-axis labels from axis in highchart
- Highcharts add ellipsis for long data
- Impossible to have plotband through current date in Highcharts
- Format point value in hightcharts
- highcharter hc_axis not working correctly
- I am using highcharts that give data when I insert in array but I want to insert data dynamically
- Position text and circle in Highcharts graph dynamically?
- make json string to match exact string for pie chart datasource?how to
- Highchart 2Layer 3D Donut chart
- How to highlight cells and yaxis ticks on highcharts heatmap hover
- How to show correctly ticks to time data in a Pie chart label using highcharts?
- Highcharts, chart with two series starting in diferent points, how yo show single column?
- Disable highchart legend if series name = 'SP'
- Bootstrap - Highcharts not showing
- How to add a second tooltip to highcharts
- highcharts: disable hover on column chart when i use two chart togheder
- Is it possible to show text on top of an Arearange chart