Allow to render custom symbol inside the legend
See original GitHub issueIs your feature request related to a problem? Please describe.
There is a pointSymbol
prop on the Line component, but there is no way to pass the custom symbol into the Legend of the chart.
Describe the solution you’d like
Add prop symbolComponent
to the LegendProps
with the same props as pointSymbol
in the Line chart
Describe alternatives you’ve considered The current alternative is to develop custom legend with custom symbols.
Additional context I am making my charts more accessible by adding different shapes of the point for each line in the chart. But symbols in legends are not customizable.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Render series symbols inside a custom legend
Hi, I'm using React Highcharts with a custom legend (one legend for multiple charts) and everything is working quite well.
Read more >Set custom legend item symbol (or icon) in HIghcharts
In the legendItemClick, event object is passed and you can look at event.currentTarget.name (to find legend name) and event.currentTarget.
Read more >How to implement TOC legends for custom feature renderers
Each LegendClass object corresponds to one symbol. Store all required symbols for rendering the feature layer in the LegendClass objects.
Read more >Legend guide — Matplotlib 3.6.2 documentation
A custom handler can be implemented to turn any handle into a legend key (handles don't necessarily need to be matplotlib artists). The...
Read more >TeX (LaTeX math mode) symbols in legends and labels ...
I want to describe the estimates by using \hat on the parameter symbols. This I have to do in legends and axis labels...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wyze thank you very much! That’s exactly what I was looking for.
I didn’t realize that
legends[].symbolShape
can accept function. That solves my issue