How to Remove Legends from ultimateChart:SupportBarChartExtended?
Closed this issue · 0 comments
XAML file code:
<ultimateChart:SupportBarChartExtended x:Name="WardwiseBoChart" HeightRequest="200" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" DrawBorders="false" DoubleTapToZoomEnabled="false" > </ultimateChart:SupportBarChartExtended>
cs file code:
chartBO.ChartData = GraphData.MonthwiseTotalBO; chartBO.DescriptionChart.Text = ""; chartBO.AxisLeft.DrawGridLines = false; chartBO.AxisLeft.DrawAxisLine = false; chartBO.AxisLeft.Enabled = false; chartBO.AxisRight.DrawAxisLine = true; chartBO.AxisRight.DrawGridLines = false; chartBO.AxisRight.Enabled = true; var XAxis = new XAxisConfig { XAXISPosition = XAXISPosition.BOTTOM, DrawGridLines = false, LabelRotationAngle = -45, AxisValueFormatter = new TextByIndexXAxisFormatter(monthLabels), LabelCount = monthLabels.Count, }; chartBO.XAxis = XAxis;
Is there any property that I am missing in BarChart?
For LineChart we can use: chart.Legend.Enabled = false;
but not working with BarChart