Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic labels display in line chart (Read 18344 times)
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
labels display in line chart
Sep 20th, 2012 at 2:56pm
Print Post  
Dear stoyan,

i don't want to display the Y Axis & X Axis labels in line chart. kindly help
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: labels display in line chart
Reply #1 - Sep 20th, 2012 at 4:16pm
Print Post  
Hi,

The following code hides the labels at the X-axis. You might have to set AxisLength explicitly, because it is usually calculated from the label widths and the axis might get too short without labels. You can also hide the axis title by setting it to empty string:

Code
Select All
LineChart1.XAxisSettings.LabelType = MindFusion.Charting.AxisLabelType.Empty;
LineChart1.XAxisSettings.AxisLength = 300;
LineChart1.XAxisSettings.TitleLabel = ""; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: labels display in line chart
Reply #2 - Sep 20th, 2012 at 6:27pm
Print Post  
thanks stoyan,

         but some time i will get empty data. at that point it is throwing error.
Note : i cannot set the control to visiable=false;
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: labels display in line chart
Reply #3 - Sep 21st, 2012 at 8:36am
Print Post  
What do you mean by getting empty data, and what exception are you getting? Calling Clear on the XData and YData collections works fine in my test project.
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: labels display in line chart
Reply #4 - Sep 21st, 2012 at 9:19am
Print Post  
Sorry stoyan, i didn't explained you. some time i don't have data from the database. at that time i am receiving some errors.
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: labels display in line chart
Reply #5 - Sep 21st, 2012 at 12:08pm
Print Post  
Are you assigning data as shown in this post?
http://mindfusion.eu/Forum/YaBB.pl?num=1346921892

What's the value of the pw_median array in such case?
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: labels display in line chart
Reply #6 - Sep 24th, 2012 at 4:25am
Print Post  
sorry stoyan,

            my array have null data.(some time i don't have data for some dates.) i that time i am reeving error
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: labels display in line chart
Reply #7 - Sep 24th, 2012 at 5:47am
Print Post  
Hi,

You will have to replace nulls with actual dates for the time being. We'll add some support for null values for next release.

Stoyan
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: labels display in line chart
Reply #8 - Sep 24th, 2012 at 9:14am
Print Post  
Thanks stoyan
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint