jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • in reply to: Version 2.8 Version 2.8 #18063

    SylvainD
    Member

    Ok.

    Thanks

    in reply to: Version 2.8 Version 2.8 #18058

    SylvainD
    Member

    I used : dataAdapter.records[row][‘datafilename’]

    Is-it the right way to do it ?

    in reply to: Version 2.8 Version 2.8 #18057

    SylvainD
    Member

    Ok, so … How should I change to make it work ?

    Thanks
    Sylvain

    in reply to: Version 2.8 Version 2.8 #18053

    SylvainD
    Member

    Oups sorry,this post is for the grid section ! I though I was there.


    SylvainD
    Member

    OK.

    Thanks for your answer.

    Let me know when it’s corrected.
    Sylvain

    in reply to: Export Datas Export Datas #14444

    SylvainD
    Member

    Hello,

    last little problem : I use a french localization (I did myself) on my grid, specially for the date and to remove the thousandseparator.

    The display on the grid is fine but the export datas are not. The thousandseparator is always a coma ‘,’.

    Here is my french localization :

    function GetLocalisation_fr() {
    var days = {
    // full day names
    names: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
    // abbreviated day names
    namesAbbr: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
    // shortest day names
    namesShort: ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"]
    };
    var months = {
    // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar)
    names: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Decembre", ""],
    // abbreviated month names
    namesAbbr: ["Jan", "Fev", "Mar", "Avr", "Mai", "Jun", "Jul", "Aou", "Sep", "Oct", "Nov", "Dec", ""]
    };
    var localizationobj = {};
    localizationobj.pagergotopagestring = "Aller a:";
    localizationobj.pagershowrowsstring = "Voir ligne:";
    localizationobj.pagerrangestring = " à ";
    localizationobj.pagernextbuttonstring = "précédent";
    localizationobj.pagerpreviousbuttonstring = "suivant";
    localizationobj.sortascendingstring = "Tri ascendant";
    localizationobj.sortdescendingstring = "Tri descendant";
    localizationobj.sortremovestring = "Supprimer tri";
    localizationobj.firstDay = 1;
    localizationobj.percentsymbol = "%";
    localizationobj.currencysymbol = "€";
    localizationobj.currencysymbolposition = "after";
    localizationobj.decimalseparator = ".";
    localizationobj.thousandsseparator = " ";
    localizationobj.days = days;
    localizationobj.months = months;
    return localizationobj;
    };

    Thanks
    Sylvain

    in reply to: Export Datas Export Datas #14373

    SylvainD
    Member

    Great Peter.

    Thanks

    in reply to: Export Datas Export Datas #14369

    SylvainD
    Member

    That’s right for the first issue. If I put Date and Time in the same column the export is ok.

    But my number is still exported as an integer and not a float.

    Sylvain

    in reply to: Category Axis on 2 lines Category Axis on 2 lines #13577

    SylvainD
    Member

    Yes it’s a possibility but with a rotation, the text takes a lot of space ! But that’s fine.

    Is there some roadmap to improve the labels display ?

    Thanks
    sylvain

    in reply to: Updating Json Data Updating Json Data #13068

    SylvainD
    Member

    Arg .. it works .. so easy …

    Thanks Peter

    in reply to: Max number of datas Max number of datas #13054

    SylvainD
    Member

    Hi,

    it seems to work without the ‘id’ value set to ‘date’.

    Thanks
    Sylvain

    in reply to: Max number of datas Max number of datas #13005

    SylvainD
    Member

    Yes my json is ok.

    You can try it using the following link :
    http://noolibee.noolitic.biz/Plugins/plugins/GetIntensityLastValues?id=9daa3a45-b801-4756-b264-704e059f5ef2&last=1000

    last=1000 is the number of values you want to get.

    Thanks

    in reply to: Max number of datas Max number of datas #13000

    SylvainD
    Member

    Hi,

    first of all, let me wish you a happy new year.

    Then, how can we advance on this issue ?

    Thanks
    Sylvain

    in reply to: Max number of datas Max number of datas #12728

    SylvainD
    Member

    Hello,

    I added a unitInterval based on the number of values …
    Same problem.

    Sylvain

    in reply to: Max number of datas Max number of datas #12705

    SylvainD
    Member

    Hi,

    you can find a piece of demo there : http://188.165.111.90:8080/Demos/TestGraph.html

    Just enter the number of values you would like to see (over 500, it doesn’t work anymore).

    Code of the page below :
    <

    !DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title></title>
    <script src="../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../Scripts/modernizr-1.7.min.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <!-- THEME -->
    <link href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="../Content/JqWidget/jqx.base.css" type="text/css" />
    <script type="text/javascript" src="../Scripts/JqWidget/jqxcore.js"></script>
    <script type="text/javascript" src="../Scripts/JqWidget/jqxchart.js"></script>
    <script type="text/javascript" src="../Scripts/JqWidget/jqxdata.js"></script>
    <script type="text/javascript" src="../Scripts/JqWidget/jqxgauge.js"></script>
    </head>
    <body>
    <div style="vertical-align: central">
    Enter number of values
    <input id="inputCounter" type="text" placeholder="nombres" style="vertical-align: central; width: 50px; margin-left:10px" />
    </div>
    <button id="buttonCounter" style="margin-left: 15px; vertical-align: central" class="btn btn-small btn-inverse span2" type="button" onclick="javascript:activeCounter()">Go</button>
    <div id="chartIntensity" style="height:500px;width:100%"></div>
    <script>
    function activeCounter() {
    var value = document.getElementById('inputCounter').value;
    console.log('Value : ' + value);
    energyIntensityGraph('http://noolibee.noolitic.biz/Plugins/plugins/GetIntensityLastValues?id=9daa3a45-b801-4756-b264-704e059f5ef2&last=' + value);
    }
    function energyIntensityGraph(url) {
    var dataSource = {
    datatype: "json",
    datafields: [{ name: 'Date' }, { name: 'Value', type: 'number' }],
    id: 'Date',
    data: { id: '9daa3a45-b801-4756-b264-704e059f5ef2' },
    url: url
    };
    var dataAdapter = new $.jqx.dataAdapter(dataSource, {
    autoBind: false,
    async: false,
    downloadComplete: function () { },
    loadComplete: function (data) {
    if (data.Success == "False") {
    alert(data.Message); objectCount = -1;
    }
    },
    loadError: function () { console.log('Error in Json Intensity'); }
    });
    var settings = {
    title: 'Test',
    description: "",
    source: dataAdapter,
    colorScheme: 'scheme02',
    showLegend: false,
    categoryAxis: {
    displayValueAxis: true,
    dataField: 'Date',
    axisSize: 'auto',
    showGridLines: false
    },
    seriesGroups: [{
    type: 'line', // change the series type here
    valueAxis: {
    axisSize: 'auto',
    description: 'Value'
    },
    series: [{ dataField: 'Value', displayText: 'value' }]
    }]
    };
    $('#chartIntensity').jqxChart(settings);
    }
    </script>
    </body>
    </html>
    Thanks Sylvain
Viewing 15 posts - 1 through 15 (of 17 total)