Closed sandy0089 closed 12 months ago
XAML file code: <ultimateChart:SupportBarChartExtended x:Name="WardwiseBoChart" HeightRequest="200" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" DrawBorders="false" DoubleTapToZoomEnabled="false" > </ultimateChart:SupportBarChartExtended>
<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
chart.Legend.Enabled = false;
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:![ChartIssue](https://github.com/bulubuloa/Ultimate-Xamarin-Forms-KIT/assets/25919316/4d7c88fb-79d2-4788-933f-796ac3b29ca5)
chart.Legend.Enabled = false;
but not working with BarChart