Open eliyasbaby opened 5 years ago
@bulubuloa @hoangquachaes How to Clear Chart data while updating .
Hi, We are struggling with a similar problem. @eliyasbaby Did you find a solution?
Hey got he solution:
var XAxis = new XAxisConfig
{
XAXISPosition = XAXISPosition.BOTTOM,
DrawGridLines = false,
LabelRotationAngle = -45,
AxisValueFormatter = new TextByIndexXAxisFormatter(monthLabels),
LabelCount = monthLabels.Count
};
chart.XAxis = XAxis;
`using System; using System.Collections.Generic; using UltimateXF.Widget.Charts.Models; using UltimateXF.Widget.Charts.Models.BarChart; using UltimateXF.Widget.Charts.Models.Formatters; using Xamarin.Forms;
namespace DemoXF { public partial class BarChartPage : ContentPage { public BarChartPage() { InitializeComponent();
}` if i update the chart with new values labels are showing from from the old list labels