topcoat-data / topcoat-public

TopCoat components, visualizations and themes
MIT License
1 stars 3 forks source link

fix: Add xanchor config to line chart legends #261

Closed egcastro closed 1 year ago

egcastro commented 1 year ago

What this does

Fixed the legends positioning described here: https://linear.app/snyk/issue/FP-1101/visualization-meta-design-details

You have to pass the legend_x_anchor from the layer configuration to see this applied.

You can use this branch to test it: chore/exposure-line-chart

Notes for the reviewer

Instructions on how to run this locally, background context, what to review, best to review commit-by-commit?, questions…

Missed anything?

More information

Before

Screenshot 2023-07-26 at 19 43 33

After

Screenshot 2023-07-26 at 19 43 05