Open eliyasbaby opened 5 years ago
XAxisConfig XAxis = new XAxisConfig { XAXISPosition = XAXISPosition.BOTTOM, DrawGridLines = false, AxisValueFormatter = new TextByIndexXAxisFormatter(labels), LabelCount = labels.Count, GranularityEnabled = true, };
Add GranularityEnabled = true, this worked for me.
x axis labels are duplicating when the the label list count is 2
for (int i = 0; i < 2; i++) { entrieLine.Add(new EntryChart(i, random.Next(20))); labels.Add("Entry" + i); }
in this case Entry 0 is duplicating upto Entry 1 .eventhough it is only one in the label list