- Welcome, Guest. Please Login or Register
MindFusion  
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing. We have released our Java Swing Pack.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
labels display in line chart
Read 7082 times

madhan   Offline
Junior Member
**
Posts: 96
Gender: male
India
FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..


   
     
 
labels display in line chart
Sep 20th, 2012 at 3:56pm
 
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
 
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: labels display in line chart
Reply #1 - Sep 20th, 2012 at 5:16pm
 
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:
LineChart1.XAxisSettings.LabelType = MindFusion.Charting.AxisLabelType.Empty;
LineChart1.XAxisSettings.AxisLength = 300;
LineChart1.XAxisSettings.TitleLabel = ""; 



I hope that helps,
Stoyan
 
 
 
IP Logged    
 
     

madhan   Offline
Junior Member
**
Posts: 96
Gender: male
India
FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..


   
     
 
Re: labels display in line chart
Reply #2 - Sep 20th, 2012 at 7:27pm
 
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
 
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: labels display in line chart
Reply #3 - Sep 21st, 2012 at 9:36am
 
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.
 
 
 
IP Logged    
 
     

madhan   Offline
Junior Member
**
Posts: 96
Gender: male
India
FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..


   
     
 
Re: labels display in line chart
Reply #4 - Sep 21st, 2012 at 10:19am
 
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
 
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: labels display in line chart
Reply #5 - Sep 21st, 2012 at 1:08pm
 
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?
 
 
 
IP Logged    
 
     

madhan   Offline
Junior Member
**
Posts: 96
Gender: male
India
FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..


   
     
 
Re: labels display in line chart
Reply #6 - Sep 24th, 2012 at 5:25am
 
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
 
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: labels display in line chart
Reply #7 - Sep 24th, 2012 at 6:47am
 
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
 
 
 
IP Logged    
 
     

madhan   Offline
Junior Member
**
Posts: 96
Gender: male
India
FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..


   
     
 
Re: labels display in line chart
Reply #8 - Sep 24th, 2012 at 10:14am
 
Thanks stoyan
 
 

if you want something then go and grab it
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print