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

Rad Chart XAxis DataLabelsColumn Bug

1 Answer 40 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Shakti SIngh Dulawat
Top achievements
Rank 1
Shakti SIngh Dulawat asked on 20 Sep 2012, 05:31 PM
Dear Friend I will add two Scanerio that will explain you the clear bugs that we have with rad Chart XAxis!
<telerik:RadChart ID="RadChart1" runat="server" DataSourceID="edsTotalStakesForEachShop"
    IntelligentLabelsEnabled="true">
    <Series>
        <telerik:ChartSeries Name="Series 2" DataXColumn="ShopId" DataYColumn="TotalStakes">
        </telerik:ChartSeries>
    </Series>
    <PlotArea>
        <XAxis AutoScale="False" DataLabelsColumn="Name" MaxValue="7" MinValue="1" Step="1"
          >
            <AxisLabel>
                <Appearance>
                </Appearance>
            </AxisLabel>
            <Appearance>
                <LabelAppearance RotationAngle="90">
                </LabelAppearance>
            </Appearance>
        </XAxis>
    </PlotArea>
</telerik:RadChart>

I am using above code and in this I add XAxis DataLabel Column when we use this it will show me result mention in screen shots A.

Now when we comment this XAxis check below code
<telerik:RadChart ID="RadChart1" runat="server" DataSourceID="edsTotalStakesForEachShop"
    IntelligentLabelsEnabled="true">
    <Series>
        <telerik:ChartSeries Name="Series 2" DataXColumn="ShopId" DataYColumn="TotalStakes">
        </telerik:ChartSeries>
    </Series>
    <PlotArea>
        <%--<XAxis AutoScale="False" DataLabelsColumn="Name" MaxValue="7" MinValue="1" Step="1"
          >
            <AxisLabel>
                <Appearance>
                </Appearance>
            </AxisLabel>
            <Appearance>
                <LabelAppearance RotationAngle="90">
                </LabelAppearance>
            </Appearance>
        </XAxis>--%>
    </PlotArea>
</telerik:RadChart>

It will show the result mention in Image B!

SO the problem is When we will use X Axis DataLable Column
1) It will hide the last series 
2) The Label got messup

Plesase suggest good ways to fix it!

Thanks

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 25 Sep 2012, 03:39 PM
Hello,

The problem is that the DataXColumn and DataLabelsColumn bindings are not compatible with each other.

Basically the DataXColumn binding tells the RadChart that it should create one axis item (label)  per each data point. Then it puts the labels on the first x slots (if you have x data points). The chart visualizes only the data points in the range [1,  x] and if there is an item outside of this range - it gets clipped.
Removing the DataXColumn  binding should solve your issue.

The other problem - with labels getting messed up can be solved by setting RadChart1.AutoLayout to true.

I hope this helps.

All the best,
Petar Kirov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Shakti SIngh Dulawat
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or