UofS-Pulse-Binfo / analyzedphenotypes

Tripal/Drupal support for analyzed phenotypic data including data loaders, exporters, trait pages and summaries on germplasm pages.
GNU General Public License v2.0
0 stars 1 forks source link

Trait Distribution Chart Field! #68

Closed laceysanderson closed 5 years ago

laceysanderson commented 5 years ago

Metadata

Documentation:

Description

We need a field to embed the trait distribution plot on trait, germplasm and project pages.

Pertinent information from user feedback:

  • Trait pages where there a multiple methods/units used for a single project: show all methods/units in stacked charts for comparison. This should only be within a single experiment.

This PR creates a single field (hp__phenotypic_variability) which is automatically included on germplasm (base table: stock), experiments (base table: project), and traits (base table: cvterm). This field will show a trait distribution plot and selector fields.

Specifically,

Testing?

The most recent version of this code is on both dev tripal and fresh. You can test using

Known Issue: There is a known issue with the chart not fitting well in the page. This is a problem with the chart and not the field and is due to it being a fixed size. This problem will be fixed in a later issue.

reynoldtan commented 5 years ago

Tested all items in this PR and they all worked 👍 , with just a few minor fine adjustments/suggestions below.

  1. With the chart issue being a fixed width, I would suggest to just center the chart in the pane. This way it is not too obvious that the chart has width limitations.

screen shot 2019-02-27 at 10 44 27 am 2 screen shot 2019-02-27 at 10 20 54 am 2

  1. The violin plot has a hover event that shows a window with extra information about a figure. However, the barchart does not have this and also, in the violin plot, the window appears in the figure legend text and not next to the pointer/figure as you would expect. screen shot 2019-02-27 at 10 46 06 am 2

  2. For collection method, on page load, they are all collapsed showing only the title of each method. Could the first item in the list be expanded? Just an added cue that those links contain more information and here I am showing you the first. screen shot 2019-02-27 at 10 51 12 am 2

  3. When clicking on the left hand side navigation, the content area seems to pulsate several times.

The x axis can be cluttered and unreadable. I believe this will be addressed by fixed width issue. I just want to include this observation in this review. screen shot 2019-02-27 at 11 01 33 am 2