You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm a developer interested in developing front-end applications with Leptos and Yew. In the projects, I use Plotters to draw charts in canvas.
In front-end applications, theming is popular. We might implement the dark/light modes. Hence, if we could have an API like apply_theme, we could easily invert the colors.
(Optional) Why this feature is useful and how people would use the feature?
It's not just related to the apply_theme API I mentioned above. It's related to the default behavior of Plotters. We have axis_style to set the color of the axis, and we also have bold_line_style and light_line_style to set the color of the grid in the chart.
However, I found if I set the same color for them, the color of the axis would be darker than the grid. It's normal for the light mode, but maybe this should be inverted in the dark mode.
I just took the screenshot of the example in README.
(Optional) Additional Information
Thank you for your time and attention, as well as for the effort you put into maintaining this crate.
The text was updated successfully, but these errors were encountered:
What is the feature?
Hello, I'm a developer interested in developing front-end applications with Leptos and Yew. In the projects, I use Plotters to draw charts in canvas.
In front-end applications, theming is popular. We might implement the dark/light modes. Hence, if we could have an API like
apply_theme
, we could easily invert the colors.(Optional) Why this feature is useful and how people would use the feature?
It's not just related to the
apply_theme
API I mentioned above. It's related to the default behavior of Plotters. We haveaxis_style
to set the color of the axis, and we also havebold_line_style
andlight_line_style
to set the color of the grid in the chart.However, I found if I set the same color for them, the color of the axis would be darker than the grid. It's normal for the light mode, but maybe this should be inverted in the dark mode.
(Optional) Additional Information
Thank you for your time and attention, as well as for the effort you put into maintaining this crate.
The text was updated successfully, but these errors were encountered: