bulubuloa / Ultimate-Xamarin-Forms-KIT

A powerful 🚀 Android/iOS chart view / graph view library, binding support for Xamarin.Forms, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, dragging and animations.
https://www.nuget.org/packages/UltimateXF/
121 stars 33 forks source link

How to Remove Legends from ultimateChart:SupportBarChartExtended? #44

Closed sandy0089 closed 12 months ago

sandy0089 commented 1 year ago

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 ChartIssue