Hazard Curves and Loss Curves display only the first two points in geoexplorer

Bug #1387272 reported by Paul Henshaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Platform
Fix Committed
High
Daniele Viganò

Bug Description

1. Run a hazard calculation - I used demos/risk Simple Classical PSHA
2. Open the results in the geoexplorer, click on 'info' button and then on one of the hazard curve points
3. The graph displays a curve which is a straight line joining only the first two values from the poes array - the next point is displayed off the end of the grahph.

You can view the complete list of poes values by downloading the layer data as csv or similar or as follows

4. right-click the curves layer, select Layer Properties
5. Select the Display tab
6. Change the Info Format to "text/plain"

If this can be fixed quickly and easily then this would be worthwhile. If it is a big job them perhaps we should rethink the approach altogether and consider means of integrating with the hazard and risk viewer application or the use of a new dedicated application.

Loss curves behave in exactly the same way, to test:

7. Return to calculate page, run risk based on hazard results, upload same demo zip
8. Open loss curves layer in geoexplorer

Revision history for this message
Paul Henshaw (paul-sl-henshaw) wrote :
Revision history for this message
Paul Henshaw (paul-sl-henshaw) wrote :
Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

It looks like that the curves are not only missing points, they are completely wrong: the y axis marks don't match with the plotted data. Data used by d3.js to plot looks good, so something is wrong in the plotting code. I'm keep working on it.

Changed in oq-platform:
assignee: nobody → Daniele Viganò (daniele-vigano)
milestone: none → 2.0.0
status: Confirmed → In Progress
Revision history for this message
Daniele Viganò (daniele-vigano) wrote :
Revision history for this message
Daniele Viganò (daniele-vigano) wrote :
Changed in oq-platform:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.