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

[Solved] How To handle distance between two point in bar series programmatecally

3 Answers 111 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Zubair
Top achievements
Rank 1
Zubair asked on 16 Jan 2014, 06:28 AM
Hi every one ..
i m new in windows application plz guide me how to fix or handle distance between two points in bar series of RadCartesianChart programmatecally. This is the distance between two bars. i attached a screen short for guide.

3 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 16 Jan 2014, 09:54 AM
Hello Zubair,

Thank you for the question.

The CategoricalAxis has a GapLength property that defines what fraction of the category slot will be filled by the data bar (it takes values between 0 and 1).

I hope this helps.


Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Zubair
Top achievements
Rank 1
answered on 16 Jan 2014, 01:55 PM
Yes this is but give me little example in C# i m new in windows development . Please tell me how to add in bar series thanks 
BarSeries barSeries = new BarSeries();
CategoricalAxis ad =new CategoricalAxis();
 ad.GapLength = 50;
0
Rosy Topchiyska
Telerik team
answered on 17 Jan 2014, 12:58 PM
Hi Zubair,

I have attached a sample project that demonstrates how to setup your chart in code behind. Please, note that the GapLength property takes values between 0 and 1 - it measures the ratio of the gap between the bars and the category slot length.

I hope this was useful.


Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart for XAML
Asked by
Zubair
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Zubair
Top achievements
Rank 1
Share this question
or