jQWidgets Forums
Forum Replies Created
-
Author
-
Ok.
Thanks
I used : dataAdapter.records[row][‘datafilename’]
Is-it the right way to do it ?
Ok, so … How should I change to make it work ?
Thanks
SylvainOups sorry,this post is for the grid section ! I though I was there.
February 12, 2013 at 10:29 am in reply to: Chart doesn't render if same values Chart doesn't render if same values #15051OK.
Thanks for your answer.
Let me know when it’s corrected.
SylvainHello,
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
SylvainGreat Peter.
Thanks
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
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
sylvainArg .. it works .. so easy …
Thanks Peter
Hi,
it seems to work without the ‘id’ value set to ‘date’.
Thanks
SylvainYes 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=1000last=1000 is the number of values you want to get.
Thanks
Hi,
first of all, let me wish you a happy new year.
Then, how can we advance on this issue ?
Thanks
SylvainHello,
I added a unitInterval based on the number of values …
Same problem.Sylvain
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
-
AuthorPosts