This PR uses an updated version of d3. I've tried to visualize plots in all the applications in the platform that use d3 (vulnerability, hrde, grv, hazus). All seem to work.
There is no pagination in the table displaying the filtered data (I think it is not necessary, and it could be added in a later PR if needed)
Fixes #571 Fixes https://github.com/gem/oq-platform/issues/581 Fixes #576 Also partially addressing https://github.com/gem/oq-platform/issues/582, and https://github.com/gem/oq-platform/issues/580, because 1) the x and y axes of two charts have been swapped, 2) now the order of axes can be changed by dragging axes with the mouse.
I re-launched the tests after Matteo's review: https://ci.openquake.org/job/zdevel_oq-platform/286/
Notes:
vulnerability
,hrde
,grv
,hazus
). All seem to work.