With Rollbase and Kendo UI, it's easy to create beautiful low-code apps. Learn how to easily create custom gauges with minimal programming.
In a previous blog post, we saw how to create powerful Rollbase dashboards with Kendo UI charts (and without much code).
Today, we will explore how to create radial gauges that can be exploited in dashboards.
For example, in a Scrum/Sprint application, we may want to have a team dashboard that look like this on tablets and desktops:
And like this on smartphones:
Note: We will use the term annulus to describe the gauge shape in this post.
We will work in the page designer. The outline of the work is:
Finally, bind the div element in each column to a Kendo UI Radial Gauge.
Here is the code to initialize the Kendo UI Radial Gauge to render as an annulus:
01.$("#gaugePercentPointsCompleted").kendoRadialGauge({02. pointer: [],03. scale: {04. rangeSize: 20,//To configure the width of range05. startAngle: 90,06. endAngle: 450,07. max: 100,//Max value of scale , in our case will be 10008. labels: { visible: false },09. majorTicks: { visible: false },10. minorTicks: { visible: false },11. ranges:12. [{13. from: 0,14. to: {!Percent_Done__Dev_},15. color: "#008000"16. }]17. },18.});
The Kendo UI Gauge can be configured to render multiple values as in the following example:

The only difference, code-wise, is that we specify multiple ranges like this:
ranges: [{ from: 0, to: 73, color: "green"},{ from: 73, to: 87, color: "darkorange"},{ from: 87, to: 100, color: "red"}]Curious to learn more? You can find out more about Rollbase here, or jump right into a free trial below.
Subscribe to get all the news, info and tutorials you need to build better business apps and sites