New to Kendo UI for jQuery? Download free 30-day trial

Use Fixed Bar Size

You might need to set the size of the default drawing element of the bars to the same size.

The following example demonstrates how to use the series.visual function to scale the default drawing element of the bars and achieve this behavior.

    <div id="chart"></div>
      var BAR_SIZE = 10;
        series: [{
          type: "bar",
          data: [1, 2],
          visual: function(e) {
            //create the default visual
            var visual = e.createVisual();
            //scale it so that it has the predefined size
            visual.transform(kendo.geometry.transform().scale(1, BAR_SIZE / e.rect.size.height, ));
            return visual;

See Also

In this article
Not finding the help you need? Improve this article