openaustralia / morph

Take the hassle out of web scraping
https://morph.io
GNU Affero General Public License v3.0
461 stars 74 forks source link

Usage charts are broken #1154

Closed equivalentideas closed 7 years ago

equivalentideas commented 7 years ago

There should be two charts on this page https://morph.io/users/stats which are built using d3 js.

screen shot 2017-08-09 at 4 16 54 pm

In the browser console I see:

TypeError: users is undefined
TypeError: d3.scale is undefined
TypeError: d3.scale is undefined
TypeError: d3.time is undefined

I think this might be to do with a gem update that bumped up our version of d3. d3 has re appropriated the scale function.

We could try updating the script to built the chart or changing the d3 version back for starters.

equivalentideas commented 7 years ago

I've confirmed that reverting to the version of the d3-rails gem that was in use when the chart was made (3.5.5) gets them working again.

I'm going to see if I can update the script easily so we can use the current version. If I just have to update the namespaced functions for scale, time, etc. I'll go with it.