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

Bar Chart same bar Width

1 Answer 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hk
Top achievements
Rank 1
Hk asked on 18 Jul 2017, 10:40 AM

Hello,

First refer "bar_Chart_issue.png". Here we can see all bars are very "congested" when data are more. And Bar width is much more(or i can say they FAT) when data are less refer "Full_Width_barChart.png" .I want to keep uniform the bar size(width) or same spacing between bars.So how can i achieve this output.Kindly provide Document/Demo/Code for same.

I am using Native Script with Angular2.

 

Thank You.

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay Tsonev
Telerik team
answered on 18 Jul 2017, 12:02 PM
Hi,

Changing the width of the bar related to the amount of data is something made by design for the Chart component. This allows setting up the correct size for the bars while changing the data in the component.

At this point at this time, there is no similar functionality, which allows changing the width manually from the code.

In regard to that, it would help if you could provide some more info about your case and for the need of a similar setup.
Regards,
nikolay.tsonev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
Chart
Asked by
Hk
Top achievements
Rank 1
Answers by
Nikolay Tsonev
Telerik team
Share this question
or