[Solved] Kendo Chart Layout and onHover

1 Answer 51 Views
Charts
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Benjamin asked on 23 Feb 2026, 10:02 AM

would like to check if the following chart layout is possbile for Kendo Bar chart?

 

and also i would like to have an onHover event that will change the chart color. for example if i hover on the category or chart for Strategy Development to change its color to like this

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 26 Feb 2026, 07:12 AM

Hi Benjamin,

Kendo UI for jQuery Bar Charts allow you to customize series colors and chart backgrounds. You can set a specific color for each series or category using the series.color option. The chart area background can also be customized with a single color or gradient using the chartArea.background property.

Here is such Dojo example - https://dojo.telerik.com/SyoZMDqx.

Regarding changing the color when a bar is hovered, you can use the series.highlight.visual. Below is an example:

highlight: {
        visual: function(e) {
          var origin = e.rect.origin;
          var bottomRight = e.rect.bottomRight();
          var topRight = e.rect.topRight();
          var topLeft = e.rect.topLeft();

          var c = "green";
          var bc = "#555";

          var path = new kendo.drawing.Path({
            fill: {
              color:  c,
              opacity: 1,
            },
            stroke: {
              color: bc,
              opacity:  0.7,
              width: 2,
            }
          })
          .moveTo(origin.x, bottomRight.y)
          .lineTo(bottomRight.x, bottomRight.y)
          .lineTo(topRight.x, topRight.y)
          .lineTo(topLeft.x, topLeft.y)
          .close();
        
          return path;
        }
      }

The approach is demonstrated here - https://dojo.telerik.com/jAFdyHQb.

For displaying additional information on hover, use the tooltip.template or tooltip.format options. This allows you to fully customize the tooltip content.

I hope this helps.

    Regards,
    Neli
    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 26 Feb 2026, 07:17 AM

    Hi Neli,

    Thanks for the response. would like to check if the onHover can be on the category level. meaning to say if hover on any of the bar for Mission & Vision, all the bar will change color?

     

    Also would like to check if the layout I am asking is doable?

    Neli
    Telerik team
    commented on 27 Feb 2026, 06:39 AM

        

    Hi Benjamin,

    Here you will find an example where the series.highlight is used per series - https://dojo.telerik.com/aVAxtrvX/3

    Regarding the layout, could you please provide a little bit more details of the expected appearance? 
    If you need to add also the dash type gridline you could use the respective configuration and its options:

    - https://www.telerik.com/kendo-jquery-ui/documentation/api/javascript/dataviz/ui/chart/configuration/valueaxis.majorgridlines#valueaxismajorgridlines

    For example:

     

    valueAxis: { .... minorGridLines: { color: "#aa00bb", visible: true, dashType: "dash", step: 25, } },

    Here is the modified example: https://dojo.telerik.com/IrOeOdKE/3

    Let me know in case you have any additional questions on the matter.

    Regards,   

    Neli

        
    Benjamin
    Top achievements
    Rank 3
    Bronze
    Iron
    Veteran
    commented on 27 Feb 2026, 07:43 AM | edited

    Hi Neil,

    for the highlighting currently the color will change when i hover on the individual bar. what i wanted is to change the color when i hover anyway in the red box area below. also can i check how do i add curved border for the 4 corner of the bar?

    for the layout, i am able to get what i wanted with your latest dojo link

     

    Jay
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    commented on 02 Mar 2026, 03:17 PM

    For the rounded corners, you could look at this post. Here it is incorporated in a dojo https://dojo.telerik.com/sjbNTEdv
    Anton Mironov
    Telerik team
    commented on 03 Mar 2026, 11:33 AM

    Hi Benjamin,

    Here is a runnable version of the dojo example that provides a working approach for the rounded corners:

    The described requirements are not built-in, so feel free to add the needed customizations by using the official API of the Chart widget:

    This is a list of the available events for the widget, where you can find the sersHover event, but there is no event for hovering your red area

    Kind Regards,
    Anton Mironov

     

    Benjamin
    Top achievements
    Rank 3
    Bronze
    Iron
    Veteran
    commented on 06 Mar 2026, 09:17 AM | edited

    Hi Anton,

    Thanks for your reply. Can i check if there is any workaround to achieve hovering the red area?

    Further would like to check if it is possible to add a Learn more link to each category text?

    Benjamin
    Top achievements
    Rank 3
    Bronze
    Iron
    Veteran
    commented on 10 Mar 2026, 04:43 AM

    Hi Anton,

    dojo sample seems to be for column. for the bar type chart i cant seems get it to work 

    Neli
    Telerik team
    commented on 11 Mar 2026, 07:50 AM

    Hi Benjamin,

     

    Please find here an example where the bars have rounded corners: https://dojo.telerik.com/TBqoXleh/8

    In the example each bar is drawn using the Kendo Drawing API's Path with cubic bezier curves to approximate semicircular caps on both ends:

    • Right end: two quarter-circle bezier curves create a right-facing semicircle.
    • Left end: two quarter-circle bezier curves create a left-facing semicircle.
    • Top/bottom: straight lineTo segments connect the two ends.

    The corner radius is set to half the bar's height (height / 2), so the ends are perfectly pill-shaped regardless of bar size. The bezier control point offset uses the standard approximation factor 0.5523 * radius for an accurate circle shape. A linear gradient is applied horizontally to give the bar depth.

    I hope this helps.

    Regards,

    Neli

    Benjamin
    Top achievements
    Rank 3
    Bronze
    Iron
    Veteran
    commented on 11 Mar 2026, 08:01 AM

    tried integrating the corner radius to the existing sample. cant seems to get it to work

    https://dojo.telerik.com/QXcSrecT

    Neli
    Telerik team
    commented on 11 Mar 2026, 08:09 AM

    Hi Benjamin,

    Regarding adding a link to the categories, I would suggest reviewing the following forum threads:

    https://www.telerik.com/forums/kendo-asp-net-mvc-add-a-link-to-custom-chart-legend 

    https://www.telerik.com/forums/add-html-link-in-kendo-chart-categoryaxis-or-valueaxis-label

    Here you will also find another example where the labels.visual is handled - https://dojo.telerik.com/rQDkyDSa.

    Regards,

    Neli

    Jay
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    commented on 11 Mar 2026, 03:08 PM | edited

    Here's a dojo https://dojo.telerik.com/uMsgVaLq that does the rounded corners and changes color on hover.

    I did try a couple different ways to set the series colors so that the visual could just retrieve them there, but I couldn't get any to work, so I resorted to the hover flag, which seems a bit hacky but it works.

     

    Neli
    Telerik team
    commented on 16 Mar 2026, 07:23 AM

    Hi Jay,

    Thank you for sharing the modified example and your approach.

    I am sure it will be helpful to the other users in the forum.

    We appreciate your contribution and your willingness to help the community.

    Regards,

    Neli

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