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.
Unfortunately, activation email could not send to your email. Please try again.

Displaying a negative value

Thread ID:

Created:

Updated:

Platform:

Replies:

127784 Dec 8,2016 11:10 AM Dec 13,2016 08:07 AM JavaScript 3
loading
Tags: ejDigitalGauge
B Nielander
Asked On December 8, 2016 11:10 AM

Hello,

Is it possible to show a negative value with the ejDigitalGauge widget?
In the example below, not "-123" is shown, but "123"

        <div class="col-md-12">
            <div id="gauge"> </div>
        </div>
        <script type="text/javascript">
        $(function()
            {
                var olapClient = $("#gauge");

                olapClient.ejDigitalGauge({ value: "-123" });
            })
        </script>

With kind regards,

Bas

Anandaraj T [Syncfusion]
Replied On December 8, 2016 11:51 PM

Hi B Nielander, 

Thanks for using Syncfusion products. 

We have prepared a simple sample for using  negative values in ejDigitalGauge widget. The sample is available in the following link 

Please refer the following code snippet to achieve this 

[JS] 
 
              $("#ScaleCircularGauge").ejCircularGauge({ 
 
                value: "-123", 
 
                //Default value of minimum is 0 
                minimum: -200, 
 
                //Default value of maximum is 100 
                maximum: -100 
            }); 

Please let us know if you have any concern. 

Regards, 
Anand 


B Nielander
Replied On December 12, 2016 03:13 AM

Hello,

The example prepared is using ejCircularGauge instead of ejDigitalGauge. Changing the example in jsplayground shows that the minus is still not shown.


With kind regards,
Bas

Anandaraj T [Syncfusion]
Replied On December 13, 2016 08:07 AM

Hi B Nielander, 

Sorry for the inconvenience caused. 

Currently, support for displaying  negative sign (-) in digital gauge is not available. We have logged an improvement task for this requirement. It will be implemented in any of our upcoming releases. 

Please let us know if you have any concern. 

Regards, 
Anand 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;