Barry

We have a .Net desktop application built using Visual Studio with Telerik UI for WinForms integrated. We are using the Chartview feature to show user some charts. However they are not displaying correctly and we cannot identify why.

We have set label mode to Top, it shows the label correctly for positive values but, it should display the bar lables at bottom side in case of negative values. We used radChartView control and belowbarSeries properties.

barSeries.ShowLabels = true;

barSeries.LabelMode = BarLabelModes.Top;

Fig1 attached shows our current chart with the incorrect label positioning
Fig2 attached shows how we would like the chart to display (a mockup).

Hristo

This type of functionality is not provided out of the box. However this can be easily achieved by subscribing to the LabelFormatting event and in the handler manually move the label downwards the labels of the bars having negative values. This can be achieved by setting a proper value to the BarLabelElement.PosittionOffset property, this can be calculated through the RadRect object contained in the LayoutSlot property. Please see my code snippet below:

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.