question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to render custom symbol inside the legend

See original GitHub issue

Is 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. image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
sebsouzacommented, Jun 29, 2021

@wyze thank you very much! That’s exactly what I was looking for.

1reaction
oleh-hutsalo-kscommented, Dec 31, 2020

I didn’t realize that legends[].symbolShape can accept function. That solves my issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found