citruspi / RHoKTheHood

A system for visualizing census data over the City of Rochester.
https://rhokthehood.com
MIT License
4 stars 2 forks source link

Add some kind of indicator data is loading #9

Open thequbit opened 10 years ago

thequbit commented 10 years ago

The data some times takes a long time to load ... it would be nice if there was some kind of indicator (pinwheel or whatever) that informed the user something was happening.

sushbhask commented 10 years ago

I think I'm gonna pick up this issue for now.

thequbit commented 10 years ago

@bhaskaraspb let me know if you have any questions ... it would be nice if it was big enough and clear enough to let the user know what was going on. I think the previous filter should also be removed prior to starting the async loading of the next filter.

thequbit commented 10 years ago

The page now has a progress bar per this commit: https://github.com/citruspi/RHokTheHood/commit/7f95f6df46327c5475175b53355608409c6a9c3c

When I opened this issue, I didn't realize the entire data set was loaded on page load. This is definitely the right way to go about this, however kind of changes the requirement. Within script.js, the function populateScale() should increment some kind of progress bar as it iterates through the data set.

citruspi commented 10 years ago

@thequbit,

Perhaps we can implement pace.js progress bar and just increase the percentage of the width of the fill each time a block's opacity is set.

I'll take a look at the pace.js loader later and I'll see what we should do.

— @citruspi