We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Adding a GuageCustomLabel

Hi,
How to I add a GuageCustomLabel to an existing CircularGuage added from designer, so for example:

GaugeCustomLabel AvgUtil = new GaugeCustomLabel();
            AvgUtil.LabelValue = "40%";
            AvgUtil.Location = new Point(120, 120);
How to I add this to CircularGuage(cgAvgVehUtil) declared in the designer?
I tried: cgAvgVehUtil.Controls.Add(AvgUtil.);  //but it doesn't work.

Please advise,

Alex

1 Reply

VS Velmurugan S Syncfusion Team October 29, 2013 07:12 AM UTC

Hi Alex,

 

Thanks for using Syncfusion products.

 

We would like to let you know that we can add the “GaugeCutomLable” value to an existing CircularGauge. Please find the below modified code snippet that meets your above mentioned scenario.

<code>

                     GaugeCustomLabel AvgUtil = new GaugeCustomLabel();

            AvgUtil.LabelValue = "40%";

            AvgUtil.Location = new Point(120, 120);

            this.CircularGauge1.Scales[0].CustomLabel.Add(AvgUtil);

 

</code>

 

And also for your reference we have created simple sample, which can be downloaded from the below location.

ErrorCombo.zip

 

Please try the above sample and code snippet, kindly let us know if it helps and any further assistance.

Regards,

Velmurugan.

Loader.
Live Chat Icon For mobile
Up arrow icon