Skip to content
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

Custom Drawing for Chart Customisation #361

Open
S-Varunn opened this issue May 4, 2023 · 1 comment
Open

Custom Drawing for Chart Customisation #361

S-Varunn opened this issue May 4, 2023 · 1 comment

Comments

@S-Varunn
Copy link

S-Varunn commented May 4, 2023

I have a requirement where I need to give the bars in a Bar Chart rounded corners but only in the upper part of the bar.

I was able to achieve rounded corners but it gets applied to both sides (Top and Bottom). Was able to this by writing a custom renderer that uses RoundRectangle2D.

I have created the drawing logic for the case where Rounded corners are applied to the top part alone using Path2D.
Could you provide support for this? Or provide a method signature that accepts custom classes in BarPainter and not just RectangularShape.

@trashgod
Copy link
Contributor

trashgod commented May 8, 2023

To publish your work stemming from discussion #360, you can fork the project, modify a branch and submit a pull request. See Collaborating with pull requests for details. I'd hoped that the rendering could be confined to the existing RectangularShape; I'm unsure about altering the BarPainter interfcve. Also consider how you might handle alternate PlotOrientation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants