This is a migrated thread and some comments may be shown as answers.
Reverse direction of linear gauge (vertical), moving from top to bottom
1 Answer 8 Views
This is a migrated thread and some comments may be shown as answers.
Nicklas
Top achievements
Rank 1
Nicklas asked on 18 Jul 2013, 11:09 AM
As the title reads, is it possible to reverse the direction of a vertical linear gauge, so it starts to move from top to bottom? My scenario is the following:
I'm feeding the gauge with real time depth data, and I have defined top / surface to be at 0. When moving deeper, I'd like the pointer to move downwards towards the bottom of the gauge.

It moves fine with the real time data now, but in the wrong direction :)

Any suggestions?

<script>
    function createGauges() {
        $("#depthBar").kendoLinearGauge({
            pointer: {
                value: 0,
                shape: "arrow"
            },
 
            scale: {
                majorUnit: 1000,
                minorUnit: 500,
                min: 0,
                max: 12000,
                vertical: true,
            }
        });
    }
 
    $(document).ready(function() {
        createGauges();
    });
</script>

1 Answer, 1 is accepted

Sort by
0
Accepted
Nicklas
Top achievements
Rank 1
answered on 18 Jul 2013, 11:25 AM
Actually solved this. Came across an option I'd missed in your docs! Setting the "reverse" attribute to "true" did the trick.
Asked by
Nicklas
Top achievements
Rank 1
Answers by
Nicklas
Top achievements
Rank 1
Share this question
or