jQWidgets Forums
jQuery UI Widgets › Forums › Gauges and Maps › Gauges › linear gauge pointer
Tagged: gauge widget, linear gauge
This topic contains 4 replies, has 3 voices, and was last updated by Gary 10 years, 2 months ago.
-
Authorlinear gauge pointer Posts
-
hello jqWidgets team,
in The linear Gauge API reference is written:
‘pointerType’ – specifies the pointer type. Possible values for this property are – ‘default’ and ‘rectangle’. If it’s value is ‘default’ the pointer will be column otherwise it’ll be an Arrow
Your JSFiddle example:
$(‘#jqxLinearGauge’).jqxLinearGauge({ pointer: { pointerType: ‘arrow’, size: ‘3%’, visible: true, offset: 10 }});(look at the possible values of the property, and your example ? )
In this example the pointer stays on 0 (must be 30).
$(‘#gaugeContainer’).jqxLinearGauge({
pointer: {
pointerType: ‘arrow’,
size: ‘15%’,
visible: true,
offset: 10
},
max: 50,
min: 0,
value:30
});Between ‘default’ and ‘rectangle’ is no difference.
thank you.Hi JoopC,
There is no difference between “rectangle” and “default”, because the default pointer is “rectangle”. You can set “arrow” if you wish, too.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/The confusion here is that the documentation reads:
“‘pointerType’ – specifies the pointer type. Possible values for this property are – ‘default’ and ‘rectangle’. If it’s value is ‘default’ the pointer will be arrow otherwise it’ll be rectangle”This makes it sound like the only valid values are ‘default’ and ‘rectangle’.
This is made more confusing by the linear gauge example being called
“pointer is set to { pointerType: ‘arrow’, size: ‘5%’, visible: true, offset: 10 }”
but actually displaying type ‘rectangle’.Worse, when the pointerType IS set to ‘arrow’ in this fiddle, the pointer is displayed at value 0 regardless of the actual value.
Hi Gary,
There is online sample – http://jsfiddle.net/jqwidgets/VCk84/ which shows how this works. If we find our that the documentation requires update, we will update it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hello Peter, it appears the example referenced from the documentation is now working in the fiddle.
Here is what I am observing:
– For the default pointer type, if I set the ‘value’ parameter, the value remains correct.
– For the arrow pointer type, if I set the ‘value’ parameter, the value initially sets, but then resets to 0. To display a value, I need to explicitly call val() after initialization.Why is this?
-
AuthorPosts
You must be logged in to reply to this topic.