The AddValue() function takes only a y values and the x values are automatically processed by aChart.xAxis.sourceOfAutomaticValues (todo link), which resembles the common scenario of charts whose graphs go from left to right. But what if you want more control over the x values (e.g. for visualizing a data point cloud)? You can use the AddXYValue(...) functions for that. These overloads are available:
public void AddXYValue(Vector2 xyValueOfNewDataPoint, string nameOfReceivingLine)
public void AddXYValue(Vector2 xyValueOfNewDataPoint)
public void AddXYValue(float xValue, float yValue, string nameOfReceivingLine)
public void AddXYValue(float xValue, float yValue)
public void AddXYValue(float xValue, int yValue)
public void AddXYValue(float xValue, bool yValue) //"false" becomes "0", "true" becomes "1"
Some overloads take the "nameOfReceivingLine" parameter. This is for cases where you have multiple lines and the premade one isn't sufficient anymore (as described in more detail in AddValue()).