Hi Isomorphic,
When we have a PieChart with two entries, both with a count of 1, only one of those entries displays in the PieChart, yet both show in the legend.
If I change one of the entries to have a count of 2, rather than 1, or if both have a count of 2, they both display as expected in the PieChart.
SmartClient Version: v12.0p_2019-02-28/Pro Deployment (built 2019-02-28)

Regards
SimpleChartData3
Sandbox9
When we have a PieChart with two entries, both with a count of 1, only one of those entries displays in the PieChart, yet both show in the legend.
If I change one of the entries to have a count of 2, rather than 1, or if both have a count of 2, they both display as expected in the PieChart.
SmartClient Version: v12.0p_2019-02-28/Pro Deployment (built 2019-02-28)
Regards
SimpleChartData3
Code:
public class SimpleChartData3 extends Record {
public SimpleChartData3(String sysUpdatedOn, Integer count) {
setAttribute("updatedOn", sysUpdatedOn);
setAttribute("count", count);
}
public static SimpleChartData3[] getData() {
return new SimpleChartData3[] { new SimpleChartData3("2019-06-21 (461)", 461), new SimpleChartData3("2019-06-23 (1)", 1),
new SimpleChartData3("2019-06-24 (18)", 18), new SimpleChartData3("2019-06-25 (1)", 1) };
}
}
Code:
public class Sandbox9 implements EntryPoint {
@Override
public void onModuleLoad() {
Window window = new Window();
window.setHeight100();
window.setWidth100();
FacetChart chart = getChart();
window.setTitle("Sandbox9");
window.addItem(chart);
window.draw();
};
private FacetChart getChart() {
FacetChart chart = new FacetChart();
chart.setData(SimpleChartData3.getData());
chart.setFacets(new Facet("updatedOn", ""));
chart.setValueProperty("count");
chart.setChartType(ChartType.PIE);
return chart;
}
}
Comment