-
Notifications
You must be signed in to change notification settings - Fork 6
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
243-enabled-different-kinds-of-legend #244
243-enabled-different-kinds-of-legend #244
Conversation
✅ Deploy Preview for ods-charts ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
08876f1
to
57409d7
Compare
06953a1
to
e394a05
Compare
57409d7
to
1a867d1
Compare
1a867d1
to
98a2598
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using this solution, should we handle the tooltip legend as well ? I don't know if this is feasible automatically and if it should be done in here but something like:
On the JS part, haven't checked in details, but it seems to work pretty well. Some small concerns (that might not be related to the PR):
- If a series is empty, the legend appear on the bottom but not in the tooltip, are we fine with that even if it's not consistent?
- If there is no defaultLegendHolder, some elements of the legend could be hidden, do you think we should handle that use case?
I hadn't thought of this use case. I think it's a good idea. But it seems rather complex to do simply in this Merge Request, don't you think? We can wait for a project need before implementing it, what do you think? Note that it's always possible for the project to fully customize the tooltip content. |
Agree, but it is not specific to this PR : cf code of https://codepen.io/jacques-lebourgeois/pen/rNgzbXQ it should be treated as a bug or a new feature to be able to configure legends with an option hide empty series legend |
Not sure because I wouldn't know which container to choose. What's more, it may be the developer's wish not to display legend for so-called “technical” series. |
Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com>
Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com>
Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com>
…efault value inside the function directly ?
946c124
to
b5ab6a5
Compare
* 245-add-vertical-legends-management-in-documentation-tool * Make donut and pie charts work * Fix formatting * [FIX] we save some space for it even if it is not rendered --------- Co-authored-by: Julien Déramond <julien.deramond@orange.com>
Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
@jacques-lebourgeois In https://ods-charts.netlify.app/examples/bar-chart, in the "Vertical grouped bar chart", we had the possibility to switch between "ODS Charts legend" and "Apache ECharts legend". That's not the case anymore in this PR, and so it's not possible neither to change here the legend orientation. Is it voluntary? |
…switch between "ODS Charts legend" and "Apache ECharts legend". => Add a missing css selector context
You're right, thanks. The selector of type legend renderer is now hidden when there is no legend. But I forgot a context in my css selector and then hide this selector for all the charts. Sorry, this is fixed I hope |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat @jacques-lebourgeois! Good job.
I've made some minor modifications in f32553a, 83d25d5, 715b4e1, and cd8cc09.
I let you check that everything's OK, and then I can merge and release a new alpha version 🚀
Note: Please transform
- [ ]
into- (NA)
in the description when things are not applicableRelated issues
Closes #243
Closes #245 (via #246)
Description
Specific legend holders
Motivation & Context
Outsourcing captions should make it possible to
Types of change
Test checklist
Please check that the following tests projects are still working:
docs/examples
test/angular-ngx-echarts
test/angular-echarts
test/html
test/react
test/vue
test/examples/bar-line-chart
test/examples/single-line-chart
test/examples/timeseries-chart