jQWidgets Forums

jQuery UI Widgets Forums Gauges and Maps Gauges how to connect gauge value to csv

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • how to connect gauge value to csv #10246

    rdaley
    Participant

    Hello All,
    I am new at this so my ignorance will shine brightly. I am trying to connect the $(‘#gaugecontainer’).jqxGauge(‘value’, 9000); to a csv file so it can update automatically. I have used the following code but cannot get it to work….I am hoping someone can assist me with this problem….Thanks-In-Advance….

    $(document).ready(function () {

    var source = {
    datafields: [{ name: ‘request’ }],
    datatype: “csv”,
    url: ‘dashboard/databases/district1wr.txt’
    }
    var dataAdapter = new $.jqx.dataAdapter(source);

    $(‘#district1wrdial’).bind(‘valueChanging’, function (e) {
    $(‘#district1wrdialvalue’).text(Math.round(e.args.value));

    });

    var value = $(‘#district1wrdial’).jqxGauge(‘request’);

    how to connect gauge value to csv #10248

    Peter Stoev
    Keymaster

    Hi rdaley,

    Unfortunately, it is not possible to bind the Gauge to a data source, because it does not support data binding. You can update its value only by setting the Gauge’s value property.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.