Skip to content

Commit

Permalink
✨ Added a slot to override chart labels in legend
Browse files Browse the repository at this point in the history
  • Loading branch information
govind-srinidhi committed Mar 13, 2024
1 parent 91b50da commit 955c7e8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
:class="`lume-background-color--${dataset.color}`"
data-j-chart-legend__symbol
/>
{{ dataset.label || index }}
<slot
:name="`label-${index}`"
:label="dataset.label"
:index="index"
>
{{ dataset.label || index }}
</slot>
</div>
</div>
</template>
Expand Down

0 comments on commit 955c7e8

Please sign in to comment.