Mohsen Zahedi
Mohsen Zahedi

Reputation: 688

Error: <rect> attribute width: Expected length, "NaN" in highcharts

I want to try display a chart in highcharts that is a heatmap chart. it works correctly when i have a little data but when i have large amount that is destroyed.

 chart: {
   type: 'heatmap',
   marginTop: 40,
   marginBottom: 80,
   plotBorderWidth: 1,
   height: 600
}

I saved that in jsfiddle.

Can anybody help me to adjust this code for large amounts of data?

Upvotes: 4

Views: 1903

Answers (1)

Core972
Core972

Reputation: 4114

You have errors in the data set :

...
[141141, 12, 0], // line 219 I think it's 141 not 141141
...
[4577, 17, 0], // line 1165
...
[6106, 17, 0], // line 1253
...
[8787, 17, 1], // line 1263

Fiddle

Upvotes: 1

Related Questions