-
Notifications
You must be signed in to change notification settings - Fork 147
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
Improvement of custom charts docs #229
Conversation
…vizro into docs/improve_custom_chart_docs
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.
Thanks for addressing this so immediately. 🚀 The flexibility of the custom charts feature is much cleaner now.
Do you think we should change the order of custom charts with Filters and Parameters and list them in the order:
- custom chart with Filter and then
- custom chart with Parameter
Also, do you think we should add following comments below def scatter_with_line(...)
and def waterfall(...)
:
- # "data_frame" is filtered.
- # "hline" is parametrised.
or something like that?
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 👍
I have one favor to ask given that this fits into this PR quite well - there is an item on our list to update the docs for the custom components as well. @antonymilne can give you more details, but in general it's also just updating the example and adding 1-2 sentences.
In the current docs, the changes for the custom slider look quite complex, while it can actually be achieved quicker and easier - see @petar-qb answer on the user question here: #187
Let me know if that's fine for you, otherwise I can also create a separate PR 👍
I implemented the above suggestions as clickable code annotations. Also improved the title of the examples, but I did not swap the order. Actually I prefer having the parameter on top, as its more important to get across. |
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 👍 Have minor comments on rephrasings - feel free to add it or not :)
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.
Thanks for putting the extra custom component change in there too!
Just while I remember, @Coding-with-Adam had some feedback that as a new user it was a little difficult to understand from the current docs the difference between filter and parameter and action. Probably he has lots of other valuable feedback too so we should quiz him in the new year 🙂
Co-authored-by: Antony Milne <[email protected]> Signed-off-by: Maximilian Schulz <[email protected]>
Co-authored-by: Antony Milne <[email protected]> Signed-off-by: Maximilian Schulz <[email protected]>
Co-authored-by: Antony Milne <[email protected]> Signed-off-by: Maximilian Schulz <[email protected]>
Happy to help. [email protected] |
Description
FIlter
andParameter
Now added:
super
instead of copying the entire build methodScreenshot
Notice
I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":