0

enter image description here

As per the above image, the dates are showing as labels in the x-axis, but the same date is repeating because that's how the data is, but I want to show 2 categories for the same date.

Sharing my code below for reference:

var s1 = new ColumnSeries { 
                    Title = "Series 1", ItemsSource = fc1,
                    ValueField = "Consumption",
                    NegativeFillColor = OxyColors.Red
                };

                var s2 = new ColumnSeries { 
                    Title = "Series 2", ItemsSource = fc2,
                    ValueField = "Consumption",
                    NegativeFillColor = OxyColors.Red
                };

                var categoryAxis = new CategoryAxis 
                { 
                    Position = AxisPosition.Bottom,
                    ItemsSource = FuelConsumption,
                    LabelField = "SSDateFormatted",
                    IsAxisVisible = true,
                    IsZoomEnabled = false,
                    TextColor = OxyColors.White,
                    Angle = -70,
                    AxisTickToLabelDistance = 20,
                    FontSize = 10,
                    MinorStep = 1
                };

                var valueAxis = new LinearAxis 
                { 
                    Position = AxisPosition.Left,
                    IsZoomEnabled = false,
                    Maximum = maxValue+10,
                    Minimum = minValue-10,
                    IntervalLength = 50,
                    TextColor = OxyColors.White
                };

0 Answers0