-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the legend extra parameter customizable #561
Comments
@markov00 @nickofthyme Not sure about your prioritization for 7.11, but this is another much-needed addition to the charts in order to display averages across selected time ranges in APM. Can you share an update on this? Thanks 👍 |
+1 o11y case
|
+1 for the @elastic/protections-experience team, we could use a feature to show accumulated values when the user isn't mousing over anything in the chart. |
It would be great if one could provide a custom legend component like for the tooltip. |
@markov00 would you accept a PR if I was to try and implement this? |
Hi @yannbolliger such a task brings in a set of decisions that we should make before attempting an implementation:
The current legend extra parameter was not actually well thought out when it was merged. It was pushed into the library to align the feature with a legacy functionality that we have in Kibana, so that is why I'm a bit hesitant about letting you try an implementation (I just don't want to waste your time and not accept the PR due to its implementation/logic). |
There are also implications related to the width of the legend, such that allowing a fully custom element would require rethinking how we currently size the legend and legend items. Currently, we use |
@markov00 @nickofthyme Thanks for the replies! I'm also interested in discussing this. |
@nickofthyme I've talked this morning with Yann and we moved the request toward #862 |
Reopening since the need of making the "extra" parameter configurable is still there |
Hey @formgeist, our dear @gvnmagni has explored a bit this space and how it will probably look like. Please take a look at #580 |
@markov00 sorry if I'm missing something, but is there a specific issue in that list of features that you're referring to? |
@formgeist sorry wrong link for you: #2096 |
Is your feature request related to a problem? Please describe.
The current legend extra parameter is used to display the latest value on the data series, or the hovered data point value. We should make this configurable to show other values or statistics, like the total value, averages etc
Describe the solution you'd like
We should move the legend props to it's own
<Legend>
component and allow the user to customize in some way the possible extra parameterDescribe alternatives you've considered
n/a
Additional context
continuation of #246
Kibana Cross Issues
Checklist
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: