Dear sir
I have a issue with how to set Y-axis as a categorical axis in
RadChartView
Document are as following
Data points are represented by a box where the height (width) of
the box is the distance between the point’s numerical value and
the categorical axis that plots the point. Bars may be either
“horizontal” or “vertical” depending on whether the categorical
axis is specified as an “X-axis” or as a “Y-axis”.
My code is as following
var barSeries = new BarSeries();
radChartView.Axes.Clear();
var verticalAxis = new CategoricalAxis();
verticalAxis.LabelFormat = "{0}";
verticalAxis.Title = "Time";
barSeries.VerticalAxis = verticalAxis;
var horizontalAxis = new LinearAxis();
horizontalAxis.Title = "Value";
horizontalAxis.LabelFormat = "{0}";
horizontalAxis.AxisType = AxisType.Second;
barSeries.HorizontalAxis = horizontalAxis;
radChartView.Series.Add(barSeries);
but the horizontalAxis is still the Categorical one
Could anyone give me a sample how to set Y-axis as Categorical Axis and Y-axis as Linear Axis to make bars show horizontally?
Thanks
I have a issue with how to set Y-axis as a categorical axis in
RadChartView
Document are as following
Data points are represented by a box where the height (width) of
the box is the distance between the point’s numerical value and
the categorical axis that plots the point. Bars may be either
“horizontal” or “vertical” depending on whether the categorical
axis is specified as an “X-axis” or as a “Y-axis”.
My code is as following
var barSeries = new BarSeries();
radChartView.Axes.Clear();
var verticalAxis = new CategoricalAxis();
verticalAxis.LabelFormat = "{0}";
verticalAxis.Title = "Time";
barSeries.VerticalAxis = verticalAxis;
var horizontalAxis = new LinearAxis();
horizontalAxis.Title = "Value";
horizontalAxis.LabelFormat = "{0}";
horizontalAxis.AxisType = AxisType.Second;
barSeries.HorizontalAxis = horizontalAxis;
radChartView.Series.Add(barSeries);
but the horizontalAxis is still the Categorical one
Could anyone give me a sample how to set Y-axis as Categorical Axis and Y-axis as Linear Axis to make bars show horizontally?
Thanks