Closed CIOData closed 8 months ago
What version of leaflegend are you using and the "dynamic" here is the text header size?
I'm using leaflegend 1.1.1. Yes, the map coloring adjusts based on user variable selection. If the title of the variable selected exceeds the pre-specified width of the legend, then it drags the upper tick mark out with it. If the title is shorter, everything renders fine.
Can you try with the latest version on GitHub? I made changes to the backend of addLegendNumeric a couple months ago that should resolve this.
Yes, this did resolve the issue. Thank you. I look forward to this being in the stable release, as we're currently using a hacky work around in our distributed code.
It will be in the next release which I'll put out soon.
On it's way to CRAN
I am using addLegendNumeric in a dynamic Shiny dashboard environment where the title may extend further than the set width. Everything adjusts accordingly with the exception of the color gradient. Is there a way to allow for dynamic widths?
Code:
Output: