render bar chart with rounded corner at right.

3 Answers 21 Views
Charts
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Benjamin asked on 29 Jul 2025, 05:26 AM

i am trying to render my chart with rounded corner at the side. but cant seems to get it to work.

 

dojo link

 

Expected result

3 Answers, 1 is accepted

Sort by
0
Yordan
Telerik team
answered on 31 Jul 2025, 01:08 PM

Hi Benjamin,

I believe I have successfully implemented the functionality you requested. Please review the provided Dojo and let me know if it meets your requirements.

The implementation includes modifications to the visual function logic, where I've optimized the approach to reuse the existing rect object while applying rounded corners to achieve the desired visual effect.

I welcome any feedback or suggestions for further refinement to ensure this solution fully addresses your needs.

Regards,
Yordan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
commented on 05 Aug 2025, 06:49 AM

hi. thx for the reply. would like to check if possible for the left side of the bar to remain sharp-edged. Only the right side has a rounded corner.
0
Yordan
Telerik team
answered on 07 Aug 2025, 08:16 AM

Hello Benjamin,

 

It is indeed possible to apply rounded corners exclusively to the right side of chart elements. This functionality can be achieved through custom visual functions in the Kendo UI Chart component.

For comprehensive implementation guidance, please refer to our knowledge base article: Chart Rounded Bar Corners

I have prepared two distinct methodologies to accomplish this requirement:

  • Path-based Approach - Utilizing custom drawing paths with selective arc definitions
  • Overlay Technique - Combining rounded rectangles with strategic masking elements

Both implementation strategies have been demonstrated in the provided Dojo example for your evaluation. Please review the solution and confirm whether it aligns with your technical requirements.

Should you require any modifications or have additional specifications, please do not hesitate to reach out.

Regards,
Yordan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
commented on 07 Aug 2025, 08:21 AM

i saw that for the chart with 0 value, there seems to be overlapping

0
Yordan
Telerik team
answered on 12 Aug 2025, 07:53 AM

Hello Benjamin,

To address the overlapping issue, consider adding a margin property within the labels configuration object. This approach provides better spacing control and visual separation. Please refer to the updated Dojo example below for implementation details.

Regards,
Yordan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Charts
Asked by
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Answers by
Yordan
Telerik team
Share this question
or