brinkmanlab / globecorr

https://globecorr.ca/
Other
0 stars 1 forks source link

Added legend, fixed label cut-off issue, and changed default threshold, colour function, font sizes, ... #12

Closed mariamarab closed 4 years ago

mariamarab commented 4 years ago

Changes made:

mariamarab commented 4 years ago

@innovate-invent I'm using the positiveCorrelationColor and negativeCorrelationColor props, but it seems like they don't trigger an update on the legend

innovate-invent commented 4 years ago

@innovate-invent I'm using the positiveCorrelationColor and negativeCorrelationColor props, but it seems like they don't trigger an update on the legend

You need to add an explicit @Watch function similar to this that watches both 'positiveCorrelationColor' and 'negativeCorrelationColor' and updates the legend.

@Watch('positiveCorrelationColor')
@Watch('negativeCorrelationColor')
updateLegend(): void {
...
}

See https://github.com/kaorun343/vue-property-decorator#Watch

innovate-invent commented 4 years ago

Would you like me to make that change?

mariamarab commented 4 years ago

Would you like me to make that change?

That would be great!

github-actions[bot] commented 4 years ago

Pull request has been successfully built and is ready for review at https://mariam-414429337-globecorr.stage.brinkmanlab.ca/

innovate-invent commented 4 years ago

I believe the tooltip for the labels hasn't been implemented for when they are truncated. Was this feature dropped? or in a future PR?