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

Displaying a negative value

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

3 Replies

AT Anandaraj T Syncfusion Team December 9, 2016 04:51 AM UTC

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 



BN B Nielander December 12, 2016 08:13 AM UTC

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


AT Anandaraj T Syncfusion Team December 13, 2016 01:07 PM UTC

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 


Loader.
Live Chat Icon For mobile
Up arrow icon