eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Getting blank page when no data points

Hi

when there is no data points on the gantt chart then I am not getting skeleton x and y axis also. The angular page is coming blank?
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Getting blank page when no data points

Hello,

This is the default behavior of Highcharts Gantt. The x and y axes render their values from your series data. Without the data, it is impossible to determine what values should be displayed on those axes, therefore no chart is displayed.

Best regards!
Kamil Musiałowski
Highcharts Developer
eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Re: Getting blank page when no data points

then what we can show for no data
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Getting blank page when no data points

It is completely up to you what would you like to display in case of no data to display.
From Highcharts perspective, I can suggest using a no-data-to-display.js module.

Read more about it here: https://api.highcharts.com/highcharts/noData

Regards!
Kamil Musiałowski
Highcharts Developer
eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Re: Getting blank page when no data points

i used https://jsfiddle.net/gh/get/library/pur ... -data-line

but its not reflecting in angular code
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Getting blank page when no data points

I am not able to help you with that case without looking at your code. Reproduce it in an online code editor, and then I'll be able to suggest some solutions.
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Gantt”