BarSeries Fixed height(width) for bars

0 Answers 52 Views
Chart
Giuliano
Top achievements
Rank 1
Iron
Giuliano asked on 22 Aug 2024, 04:50 PM

Hello,

I'm wondering if there is a way to set a fixed height to the bars in a barseries. For example, instead of the bars changing height in the following example, I'd like them to stay up with a fixed height.

 

 

 

The desired outcome would look something like this:

The xaml I used fort the example is this:

<telerik:RadCartesianChart>

    <telerik:RadCartesianChart.Series>
        <telerik:BarSeries ShowLabels="False"
                           CategoryBinding="Category"
                           ValueBinding="Value">

            <telerik:BarSeries.DataPoints>
                <telerik:CategoricalDataPoint Category="Apples" Value="20"/>
                <telerik:CategoricalDataPoint Category="Bananas" Value="28"/>
                <telerik:CategoricalDataPoint Category="Oranges" Value="17"/>
                <telerik:CategoricalDataPoint Category="Strawberries" Value="30"/>
            </telerik:BarSeries.DataPoints>
        </telerik:BarSeries>
    </telerik:RadCartesianChart.Series>

    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:LinearAxis x:Name="horizontalAxis1"/>
    </telerik:RadCartesianChart.HorizontalAxis>
    
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:CategoricalAxis/>
    </telerik:RadCartesianChart.VerticalAxis>


</telerik:RadCartesianChart>

Is this possible using the BarSeries? Any help is appreciated.

Thank You,

Giuliano

No answers yet. Maybe you can help?

Tags
Chart
Asked by
Giuliano
Top achievements
Rank 1
Iron
Share this question
or