jQWidgets Forums
Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
Author
-
Thats great!! It works just fine!
I have one more thing that I need to ask you.
I want all my legends to be unchecked by default. I read about it and found out that hideserie is a property used to do that. But I dont understand how it works.
can you tell me how to uncheck my legends by default in the code above?January 7, 2016 at 10:24 pm in reply to: Unable to Bind JSON Data with Stacked Line Series Chart Unable to Bind JSON Data with Stacked Line Series Chart #80211Hey! I have a similar issue!
Can you let me know if in the code below “year” can be made dynamic as well??var dataAdapter = new $.jqx.dataAdapter(source, { async: false, autoBind: true, beforeLoadComplete: function (records) { newRecords = new Array({ Year: 2012, Site1: 0, Site2: 0, Site3: 0, Site4: 0 }, { Year: 2013, Site1: 0, Site2: 0, Site3: 0, Site4: 0 }, { Year: 2014, Site1: 0, Site2: 0, Site3: 0, Site4: 0 }); for (var i = 0; i < records.length; i++) { var currentRecord = records[i]; switch (currentRecord.Year) { case "2012": newRecords[0]["Site" + currentRecord.SiteId] = parseFloat(currentRecord.Amount); break; case "2013": newRecords[1]["Site" + currentRecord.SiteId] = parseFloat(currentRecord.Amount); break; case "2014": newRecords[2]["Site" + currentRecord.SiteId] = parseFloat(currentRecord.Amount); break; } } return newRecords; }, loadError: function (xhr, status, error) { alert('Error loading "' + source.url + '" : ' + error); } });
And how?
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)