score:1
Accepted answer
NaN is not a correct point format, just like String or Boolean. If value is not a number then it's treated as null-point. I think you want to use opposite options: connectNulls
to false and just remove null points, with given indexes, demo: http://jsfiddle.net/BlackLabel/fquznbeq/4/
You can automate this process: http://jsfiddle.net/BlackLabel/fquznbeq/8/
function toHCFormat(data) {
var formatted = [];
data.forEach(function (point, i) {
if (point === null) {
// do nothing
} else if (isNaN(point)) {
formatted.push([i, null]);
} else {
formatted.push([i, point]);
}
});
return formatted;
}
Use:
data: toHCFormat([
20,
60,
null,
11,
null,
160,
120,
130,
NaN,
NaN,
80,
40
]),
Source: stackoverflow.com
Related Query
- Highchart - Connect nulls only when value is null
- highchart connect nulls only when two values are close (aka by distance)
- I want to display bar with minPointLength dynamically when value in null in highchart
- Handling null value when casting to float
- Show N/A in datalabels, when value is null - Highcharts
- Is there a way how to dynamically create a plotline in highchart when the value is lower than previous one?
- Highchart Axis with only min and max series value
- Hide a category when a series name has no value attributed to it highchart
- highchart line chart last null value is not conected with line
- Is it possible to show the chart if the value of array bracket is null or empty in the HighChart
- Why does my Highchart look different when I transfer my code from Jsfiddle to my server?
- Is it possible to trigger tooltip in highchart of a line chart ONLY when the mouse hovers over the point?
- HIghchart Area Chart display NULL value in a wrong way
- Remove Highchart line when no value
- x-axis, y-axis lines does not appear, when I include 3D chart library of HighChart in my code
- gridLineDashStyle of Highchart missing grid line at bottom when only one item as bellow demo
- How to indicate null value but don't connect it in Highcharts Line graph?
- How to display plotlines when only one value exists
- Y-axis exceeds the max value when height of highchart is decreased
- Highchart spline Cut Off when reach to maximum scale value. How can it fixed?. I have attached may sample code on body
- When there is a plotband and a plotline emerging from yAxis how to set a particular width for plotband only in highchart
- Highchart JS (HTML table, Line chart) line not showing if data has null value
- when is a highchart completely loaded?
- Highchart - change color of one x-axis label only
- Resolve Conflict When Using Highchart and Highmap together (TypeError: ma is not a function)
- Change color of bars depending on value in Highchart bar-chart with MVC3
- Highcharts - only show tooltip when hovering directly on point
- Call an angular component method when we click on highchart series
- Disable marker hover in only one marker of highchart
- How to apply borderRadius only for top side of Column or Bar in Highchart
More Query from same tag
- Highcharts columnrange chart with multipleseries
- Changing the contents of Highcharts legend
- In Highcharts, my dataLabels disappear when re-enabling the rightmost element of my chart
- Angular 4 using highcharts gauge
- Highcharts of type area range not displaying markers like circles
- Trying to default a legend value as hidden using logi info
- rCharts/Highcharts reversedStacks not working in R
- Highcharts: significant decimals in the tooltip
- Is there a function to highlight another stat/point/column while hovering element on Highcharts?
- How do I input bar-chart data to an overall pie-chart ? (Highcharts/ JS / jQuery)
- How can I disable on hover marker animation in Highcharts 6.x?
- HighCharts stacked column chart : 'plotOptions.series.stacking' are incompatible types
- Highstock: export CVS/XML only visible/selected range
- Difference between highcharts and highstock during real time trace and xAxis with max value
- SplitSeries does not work in Packed Bubble Highchart in r
- Plotting Highcharts Chart from multiple data points in json
- R highcharts multiple stacked bar chart
- Can I use two different formatters for highchart tooltips?
- Highcharts: is it possible to set up top border radius for the columns in Column chart?
- Highchart Annotation Connector
- Create highchart density with more than 2 groups
- calculate the difference between 2 series in tooltip for highstock
- stacked column highchart custom modifications
- highchart's line chart with constant series not plotting when using linear gradient colour
- How do I make each row in a HTML table a pie chart in Highcharts?
- highcharts JSON google earth
- Determine which scatter points are within a filled area in highcharts
- Using HIghcharts on Codeigniter to get data name and total
- How to convert this require statement to import using systemjs / es6?
- Implement Gantt Highcharts in react