jQWidgets Forums

jQuery UI Widgets Forums Gauges and Maps Gauges linear gauge pointer

This topic contains 4 replies, has 3 voices, and was last updated by  Gary 10 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • linear gauge pointer #65221

    JoopC
    Participant

    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.

    linear gauge pointer #65226

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    linear gauge pointer #68516

    Gary
    Participant

    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.

    linear gauge pointer #68529

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    linear gauge pointer #68914

    Gary
    Participant

    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?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.