Rank: Newbie
Groups: Registered
Joined: 11/23/2015(UTC) Posts: 1
|
Hi,
Is there a way possible to sort the Legend in a NVD3 created Pie Chart or Bar ? I have a legend LOW,MEDIUM,HIGH but the legend is not always shown in the correct Order. Sorting in the SQL statement does not make a difference.
Any Ideas? Thanks.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Good find, actually it is now listed as a bug 53 and it will be fixed in the 2.0 release. If you need a hot fix, you should modify the ReportView.cs file, method initXValues(): Code:return result.OrderBy(i => i.Value).ToDictionary(i => i.Key, i => i.Value);
The fix also include a test to perform ascending or descending sort...
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.