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

how to set the width of Bar chart in BarSeries (How to set the width of a BarSeries?)

1 Answer 181 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Dhaval
Top achievements
Rank 1
Dhaval asked on 20 Jun 2017, 01:25 PM

<telerik:RadChart x:Name="NumberOfOpenIssuesBySeverityChart" ItemsSource="{Binding OveralIssueDashboard.NumberOfClosedIssuesByMonth}" >
<telerik:RadChart.PaletteBrushes>
<SolidColorBrush Color="Green"/>
<SolidColorBrush Color="Green"/>
<SolidColorBrush Color="Green"/>
</telerik:RadChart.PaletteBrushes>
<telerik:RadChart.DefaultView >
<telerik:ChartDefaultView >
<telerik:ChartDefaultView.ChartTitle>
<telerik:ChartTitle>
Total Number Of Resolutions Provided
</telerik:ChartTitle>
</telerik:ChartDefaultView.ChartTitle>
<telerik:ChartDefaultView.ChartArea>
<telerik:ChartArea LabelFormatBehavior="None" LegendName="ChartLegend3" ScientificDigits="0" >
<telerik:ChartArea.AxisY >
<telerik:AxisY AutoRange="False" MinValue="0" Step="1" MinorTickPointMultiplier="1" MinorTicksVisibility="Collapsed" StripLinesVisibility="Collapsed" />
</telerik:ChartArea.AxisY>
</telerik:ChartArea>
</telerik:ChartDefaultView.ChartArea>
<telerik:ChartDefaultView.ChartLegend>
<telerik:ChartLegend Visibility="Collapsed" />
</telerik:ChartDefaultView.ChartLegend>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
<telerik:RadChart.SeriesMappings >
<telerik:SeriesMapping>
<telerik:SeriesMapping.SeriesDefinition>
<telerik:BarSeriesDefinition />
</telerik:SeriesMapping.SeriesDefinition>
<telerik:ItemMapping DataPointMember="YValue" FieldName="NumberOfIssue" />
<telerik:ItemMapping DataPointMember="XCategory" FieldName="MonthName" />
</telerik:SeriesMapping>
</telerik:RadChart.SeriesMappings>
</telerik:RadChart>

 

 

-------Problem Statement -----

I want to set fix bar size in above Rad Chart.

For more information I have attached PNG image.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 23 Jun 2017, 09:58 AM
Hello Dhaval,

Generally, we would encourage you to use the new RadChartView control over the former RadChart control.

Controlling the bar segment width in a RadCartesianChart has been discussed in the following thread.

For your convenience, I'm attaching a sample project as a demonstration.

Additionally, I suggest you go over the available demos in the WPF Controls Samples and SDK Samples Browser to get a good idea of how to use the RadChartView control.

Please inform me whether the approach suggested by my colleagues in the forum thread works for you. If you need any further assistance, please let me know.

Regards,
Dilyan Traykov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Chart
Asked by
Dhaval
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or