Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Concern regarding sorting compatibility: LineChart (Read 6408 times)
marina
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Nov 4th, 2014
Concern regarding sorting compatibility: LineChart
Nov 18th, 2014 at 7:57am
Print Post  
Hi,
According to what I have noticed, the "POINT" related data is saved in separated collections:
- XAxis
- YAxis
- TooltipsCollection
- BrushCollection

This may lead to situation when only one collection is updated while the rest of the collections are left without change.

Please see below one example for of this behavior:
The "SortOrder" property (SortXDAta/SortYData) doesn't change the tooltips. After the sort occurs, there is no correlation between the tooltip data and the XAxis.

Can you please provide me additional places (related to the LineChart) that i should be aware of regarding this behaviour??

for example: Zoom calculations..?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Concern regarding sorting compatibility: LineChart
Reply #1 - Nov 18th, 2014 at 11:10am
Print Post  
Hi,

There are also pen and label collections. The labels are sorted together with data, we'll also sort tooltips for next release. We could add additional options for sorting pens and brushes if you want them bounds to data elements.

Stoyan
  
Back to top
 
IP Logged
 
marina
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Nov 4th, 2014
Re: Concern regarding sorting compatibility: LineChart
Reply #2 - Nov 18th, 2014 at 11:45am
Print Post  
Currently we are sorting the data by ourselves because of that, but in general, why not to treat them all as one unit ?
Is there additional places where the data/tooltips/pens/brushes/labels is being sorted except of the "Sort" property is enabled?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Concern regarding sorting compatibility: LineChart
Reply #3 - Nov 18th, 2014 at 12:07pm
Print Post  
They are sorted when you enable SortOrder or SortSeriesBy property, the former sorting elements in each series, and the latter sorting the overall order of series lines on screen. Brushes and pens are not sorted because we imagine you'd want to assign alternating colors and not reorder them with data, say if you want to repeat white/yellow/orange/white/yellow/etc... We'll add some flag that will let you sort them as well for next release.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
marina
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Nov 4th, 2014
Re: Concern regarding sorting compatibility: LineChart
Reply #4 - Nov 19th, 2014 at 7:40am
Print Post  
thanks.
Flag is a good idea. Smiley.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Concern regarding sorting compatibility: LineChart
Reply #5 - Nov 24th, 2014 at 12:23pm
Print Post  
Hi,

You can find a new pre-release build on the PM page. Tooltips should be sorted automatically now. To sort brushes, enable the SortColor flag of SortOrder property:

lineChart.SortOrder = SortOrder.Ascending | SortOrder.SortColor;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint