javascript - Reverse direction of Kendo UI Linear Gauge -


using kendo ui datawiz component (linear gauge) in project. it's supposed indicator depth, surface @ 0 (top) , bottom should @ x (bottom). have not figured out how 'reverse' direction of gauge, causing start @ 0, , move downwards towards x @ bottom.

does know how achieve this?

here's gauge:

        function creategauges() {             var value = $("#depthbar").val();              $("#depthbar").kendolineargauge({                 pointer: {                     value: 28,                     shape: "arrow"                 },                  scale: {                     majorunit: 20,                     minorunit: 2,                     min: -40,                     max: 60,                     vertical: true,                     directions:                    }             });         }          $(document).ready(function() {             creategauges();         }); 

aaand, i've found answer. missed tiny piece of code in docs;

...     scale: {         majorunit: 1000,         minorunit: 500,         min: 0,         max: 12000,         vertical: true,         reverse: true     } ... 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -