NVD3 - how to add a loading spinner to line chart?

368 views
Skip to first unread message

Davidneedshelp

unread,
Feb 3, 2016, 7:10:25 AM2/3/16
to d3-js

Hi there,

I'm using a nvd3 line chart on ym website but data gets more and more and the graph takes more and more time to load.

So I want to add a loading spinner to the place where the graph shows up to indicate that it's loading and may take a while.

Any idea how to do that?

thanky you!


Yang Hung

unread,
Feb 3, 2016, 1:23:35 PM2/3/16
to d3-js
Hi David,

I have been using dc.js to build an internal dashboard and encountered the same issue you have. I used this to add a spinner: http://fgnass.github.io/spin.js/

Hope this helps!

Yang

Davidneedshelp

unread,
Feb 4, 2016, 5:16:47 AM2/4/16
to d3-js
Hey Yang,
thanks for the link.
Looks good.
Will try this.

Reply all
Reply to author
Forward
0 new messages