-
Notifications
You must be signed in to change notification settings - Fork 846
Dynamic border radius for StackedColumnSeries #830
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
Comments
Here is the sample of code we have written to build a plot
|
Hi @Serproger, To implement the border radius for the last stacked column alone, we have added the borderRadius property inside the StackedColumnSeries to the last series alone. Here we have added the border radius only to the top left and top right of the stacked column. In this way, you can achieve your expected output by applying the border radius to the last series alone. Kindly review this code snippet:
Snapshot: Also, we have attached sample below for your reference. Regards, |
I have two problems with it
In Serproger's example, if he will use borderRadius on green series, all others will be without rounded edges. If he will use borderRadius on gray series and green series, there will be ugly artifacts in the last column Suggest we need ability to make border radius on whole column, not for one of series |
This is still an issue. I can set the radius of the top series but if there is no data for that series on that bar then the next series won't apply the radius now that it is the top one. This can be seen in the pic for the 4/26/2024 bar. Any chance this could be updated to apply to the whole bar like @pandazed suggested? Or at least reopened to be revisited. |
Apparently they just decided to ignore this one... |
It would also be great to support this same functionality for custom renderers. I need to do the same thing, but with my own custom renderers. |
we also need this functionality. And especially with a fix for the issue @Serproger @pandazed @woolseym mentioned. Unfortunately in our case last series needs the border, but series has almost no data; any chance to give an ETA for this? |
BTW: Since it is not supported yet out-of-the-box, I have now solved the problem with my own renderer (onCreateRenderer in StackedColumnSeries) for the time being. Perhaps it will help one or the other, even if it is more challenging and complex |
Hi @Serproger, We have validated your query and we would like to inform you that you can achieve your requirement by using a custom StackedColumnSeriesRenderer. By overriding the onPaint method of the segment, you can customize the corner radius of each stacked column based on your condition. Initialize the custom stacked column series in the chart using the onCreateRenderer callback to render the customized segment. Please refer to the following code snippet and demo for reference. Custom stacked column series:
Set the custom stacked column series to chart:
Sample: GH_830.zip For more details, please refer to the following User Guide link: Regards, |
Please reopen this ticket, if you need further assistance with this. |
We want to implement a plot according to attached design. Your library
syncfusion_flutter_charts
almost allows to do it, but we have a question.We need to add border radius only to a top series of data in each column (and this series can be different for each column). As we can see, currently class

StackedColumnSeries
allows to add border radius only as a double, therefore it can only be set simultaneously for all the records belonging to one series. We don't have any builder function that allows to set border radius depending on column. Could you please elaborate on this problem and tell us how such a result can be achieved?The text was updated successfully, but these errors were encountered: