How to set a fixed width to the bar in rangebarseries ?

1 Answer 107 Views
ChartView
Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
Om Pushkara deep asked on 15 Jun 2021, 07:38 AM
I wanted to set the width to a fixed size for bar rather than auto width set by telerik

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Jun 2021, 11:19 AM

Hello,

There is no setting for specifying a fixed width for the bars. It directly depends on the values displayed on the axis, its minimum/maximum range and defined step accordingly. The more axis values you have, the smaller width for the range bar you will have:

            LinearAxis verticalAxis = radChartView1.Axes.Get<LinearAxis>(1);
            verticalAxis.Minimum = 840; //Minutes 0:00
            verticalAxis.Maximum = 890; //Minutes 23:00
            verticalAxis.MajorStep = 10; //60 minutes in an hour

If less dates are added as categories, the range bars will be wider:

Another approach to enlarge the bars is to use the zoom functionality:

https://docs.telerik.com/devtools/winforms/controls/chartview/features/scroll-and-zoom 

Off topic, I would highly encourage you to activate a trial license which will give you the opportunity to evaluate our controls for 30 days and see whether it is appropriate for your developing purposes and upgrade to a purchase license later:

https://www.telerik.com/purchase/support-plans 

https://www.telerik.com/products/winforms.aspx 

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
commented on 15 Jun 2021, 12:51 PM

Hi ,
Thanks . That helps.

To add upon ,our company is already using licensed telerik version for Winforms in our projects.
Dess | Tech Support Engineer, Principal
Telerik team
commented on 15 Jun 2021, 01:27 PM

I am glad to hear that you have a license already. Please ask the purchase holder to add you as a licensed developer to the purchase: 

https://www.telerik.com/purchase/faq/licensing-purchasing

Thus, you will have access to the Downloads section and you will be entitled with Support package.

 
Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
commented on 15 Jun 2021, 06:49 PM

Sure. Good to know and thanks once again.
Tags
ChartView
Asked by
Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or