Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LineChart shows x value of the point as 0 when XAxisSettings.DataFormat = Auto (Read 3979 times)
marina
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Nov 4th, 2014
LineChart shows x value of the point as 0 when XAxisSettings.DataFormat = Auto
Nov 4th, 2014 at 11:41am
Print Post  
Hi,
Once the this.lineChart.XAxisSettings.DataFormat  property is set to "Auto" (default value), there is a weird behavior I observe:
In case the x value of the point is fracture, it gets zero in the chart preview.

See attachment for example:
In both cases the following is chosen:      

this.lineChart.XData = new MindFusion.Charting.SeriesCollection("5.3");
this.lineChart.YData = new MindFusion.Charting.SeriesCollection("5");

Thanks in advance,
Marina   
  

MindFusion_LineChart.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LineChart shows x value of the point as 0 when XAxisSettings.DataFormat = Auto
Reply #1 - Nov 4th, 2014 at 12:02pm
Print Post  
Hi,

The control manages to parse 5.3 as a date and displays it at the beginning of an auto-calculated interval, unless you also set StartDateTime and EndDateTime properties. If you don't need to display dates, keep DataFormat set to Number.

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


I Love MindFusion!

Posts: 5
Joined: Nov 4th, 2014
Re: LineChart shows x value of the point as 0 when XAxisSettings.DataFormat = Auto
Reply #2 - Nov 4th, 2014 at 1:17pm
Print Post  
It helped,
thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint