The MindFusion Forums
Gauge and Chart Components >> ASP.NET >> labels display in line chart
https://mindfusion.eu/Forum/YaBB.pl?num=1348152995

Message started by madhan on Sep 20th, 2012 at 2:56pm

Title: labels display in line chart
Post by madhan on Sep 20th, 2012 at 2:56pm
Dear stoyan,

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

Title: Re: labels display in line chart
Post by Stoyo on Sep 20th, 2012 at 4: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 = "";[/code]

I hope that helps,
Stoyan

Title: Re: labels display in line chart
Post by madhan on Sep 20th, 2012 at 6: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;

Title: Re: labels display in line chart
Post by Stoyo on Sep 21st, 2012 at 8: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.

Title: Re: labels display in line chart
Post by madhan on Sep 21st, 2012 at 9: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.

Title: Re: labels display in line chart
Post by Stoyo on Sep 21st, 2012 at 12: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?

Title: Re: labels display in line chart
Post by madhan on Sep 24th, 2012 at 4: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

Title: Re: labels display in line chart
Post by Stoyo on Sep 24th, 2012 at 5: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

Title: Re: labels display in line chart
Post by madhan on Sep 24th, 2012 at 9:14am
Thanks stoyan

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.