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

2 posts, 0 answers
  1. Dhaval
    Dhaval avatar
    4 posts
    Member since:
    Jul 2011

    Posted 20 Jun Link to this post

    <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.

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    634 posts

    Posted 23 Jun Link to this post

    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.
Back to Top