This is a migrated thread and some comments may be shown as answers.

Linear Gauge Bar Rounding

3 Answers 79 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 06 Feb 2015, 10:14 AM
Hi,

I am new to Telerik, and I have a question on the Linear Gauge control. I was wondering if there is any way to add rounding to the bars (i.e. similar to css border-radius).

Currently I have the following:

@(Html.Kendo().LinearGauge()
        .Name("DivTime")
        .HtmlAttributes(new { title = "167" })
        .Pointers(p =>
        {
            p.Add().Value(167).Color("#2A5E76").Size(20).Margin(0).Border(b => b.Opacity(100).Width(0));
            p.Add().Value(100).Color("#C1D82F").Size(20).Margin(0).Border(b => b.Opacity(100).Width(0));
        })
        .Transitions(false)
        .Scale(scale => scale
            .Vertical(false)
            .Labels(builder => builder.Visible(false))
            .MajorTicks(builder => builder.Visible(false))
            .MinorTicks(builder => builder.Visible(false))
            .Line(builder => builder.Visible(false))
            .MajorUnit(20)
            .MinorUnit(2)
            .Min(0)
            .Max(167)
        ))

It would be nice to add rounding edges if this is possible (but It's not essential).

Thanks in advance

Sam

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 06 Feb 2015, 01:24 PM

Hello Sam,

The Linear Gauge does not currently support adding border radius to the pointers. Please excuse us if this is causing an inconvenience.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Steve
Top achievements
Rank 1
Veteran
answered on 11 Jun 2020, 07:14 PM

I would like to have rounded ends on the linear gauge. Does the current version support this?

 

0
Silviya Stoyanova
Telerik team
answered on 15 Jun 2020, 02:26 PM

Hello Frank,

I am afraid that the enhancement is not implemented yet. However, there is an open Feature Request in our feedback portal: 

I have given a Vote on your behalf in order to increase the popularity.

Kind Regards,
Silviya Stoyanova
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Gauge
Asked by
Sam
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Steve
Top achievements
Rank 1
Veteran
Silviya Stoyanova
Telerik team
Share this question
or