This is a migrated thread and some comments may be shown as answers.

set bar width for rad chart

8 Answers 504 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Yosief
Top achievements
Rank 2
Yosief asked on 25 Jul 2008, 11:12 AM

Hi All

I want to set the width of bars in a rad chart in run time.

I need help as soon as possible please.

Yosief Kesete

8 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 25 Jul 2008, 12:09 PM
Hi Yosief,

We would suggest you to review this help article here that describes how to use the relevant BarOverLapPercent and BarWidthPercent properties of RadChart.


Greetings,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Yosief
Top achievements
Rank 2
answered on 25 Jul 2008, 02:11 PM
Hi Manuel

The info in the link does not help. Let me give you some more info.

My X-Column is a string data type and my Y-column is integer.

Yosief
0
Yosief
Top achievements
Rank 2
answered on 25 Jul 2008, 02:11 PM
Hi Manuel

The info in the link does not help. Let me give you some more info.

My X-Column is a string data type and my Y-column is integer. And I have only one series.

Yosief
0
Giuseppe
Telerik team
answered on 28 Jul 2008, 08:22 AM
Hi Yosief,

We are unsure why your specific project cannot take benefit from the BarWidthPercent property -- please review the attached sample application and let us know how it goes.


Kind regards,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Yosief
Top achievements
Rank 2
answered on 28 Jul 2008, 09:56 AM

Hi Manuel

Thanks. It worked great once I did the following

    .DataGroupColumn = ""
    .PlotArea.XAxis.Appearance.Visible = Auto

Yosief
0
Mohammed
Top achievements
Rank 1
answered on 02 Feb 2011, 08:46 AM

Dear Telerik Team,

I think you should work more on the RadChart control, I do not care about how much beautiful it is, what am care about it is to deal with this control as it is in excel. I spend more than 10 hours trying to change the colomn width into fixed, but I could not do so, could you please help.

Regards,

0
Mohammed
Top achievements
Rank 1
answered on 02 Feb 2011, 09:18 AM
What I have done:
Set Xaxis.autoscale=False
Set the Xaxis Minvalue=1   ---Through Propertires window
Set the Xaxis Maxvalue=3   ---Through Propertires window

set the Xaxis items(2).visible=false ---Through Propertires window
set the Xaxis items(3).visible=false ---Through Propertires window


Regards

0
Giuseppe
Telerik team
answered on 07 Feb 2011, 02:57 PM
Hello Yosief,

Unfortunately it is not possible to set explicit static pixel width for the Bar series type -- you can achieve similar effect by setting manually static range for the XAxis like this (you can combine it with BarWidthPercent if appropriate):

RadChart1.PlotArea.XAxis.AutoScale = false;
RadChart1.PlotArea.XAxis.MinValue = 1;
RadChart1.PlotArea.XAxis.MaxValue = 10;
RadChart1.PlotArea.XAxis.Step = 1;
 
RadChart1.DataSource = new int[] { 1, 10, 5, 2, 11 };
RadChart1.DataBind();



All the best,
Giuseppe
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Yosief
Top achievements
Rank 2
Answers by
Giuseppe
Telerik team
Yosief
Top achievements
Rank 2
Mohammed
Top achievements
Rank 1
Share this question
or