Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Add a method to set the order of legend and chart #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Rocksheep
Copy link

I added a method to the abstract chart class so users can decide if they want to display the chart or the legend first. I did not know how to write a test for this so if you have any pointers for that I am willing to write some!

@maartenpaauw
Copy link
Owner

Yo! Like we discussed in a video call, I thinks it would be a nicer solution if we add a <x-wrapper/> component with multiple (named) slots; A before-chart slot, default slot (where the chart will go) and an after-chart slot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants