RNAcentral / r2dt-web

Web component for visualising RNA secondary structure in standard orientations
https://rnacentral.github.io/r2dt-web/
Apache License 2.0
3 stars 1 forks source link

Customise legend location #18

Open AntonPetrov opened 1 month ago

AntonPetrov commented 1 month ago

Based on feedback from PomBase from @valwood and @kimrutherford, it would be useful to customise the location of the legend so that the R2DT widget can better fit in horizontal layouts. One could add options like legendLocation: bottom/left/right.

carlosribas commented 3 weeks ago

Hi @ValWood and @kimrutherford. How would you like to display the dot-bracket notation? Would you like to change this too? Thanks!

ValWood commented 3 weeks ago

Hi @carlosribas

I think it would be useful if we could position it (or even hide it , it probably isn't critical for our users).

carlosribas commented 3 weeks ago

Hi @ValWood and @kimrutherford,

To display the legend alongside the secondary structure, use the following parameter:

customStyle='{
    "legendLocation": "right"
}'

Currently, "right" is the only supported value, which aligns with your requirements.

I will keep this issue open until the other changes are completed.

kimrutherford commented 2 weeks ago

To display the legend alongside the secondary structure, use the following parameter:

That worked. Thanks!