super(valueProperty, labelProperty);
}
@Override
public void populateData(ChartConfig config) {
LineChart chart = (LineChart) config;
chart.getValues().clear();
XAxis xAxis = null;
if (labelProperty != null || labelProvider != null) {
xAxis = chart.getModel().getXAxis();
if (xAxis == null) {
xAxis = new XAxis();
chart.getModel().setXAxis(xAxis);
}
xAxis.getLabels().getLabels().clear();
}
boolean first = true;
for (ModelData m : store.getModels()) {
Number n = getValue(m);
if (n == null) {
chart.addNullValue();
} else {
chart.addValues(n);
maxYValue = first ? n.doubleValue() : Math.max(maxYValue, n.doubleValue());
minYValue = first ? n.doubleValue() : Math.min(minYValue, n.doubleValue());
first = false;
}
if (xAxis != null) {