Hi Isomorphic,
We have a problem with some legend data being clipped under certain data sets.
We have a chart within a window, however, the same problem exists with a chart stand-alone, as shown below in the screenshots.
Thanks


SimpleChartData
Sandbox9
We have a problem with some legend data being clipped under certain data sets.
We have a chart within a window, however, the same problem exists with a chart stand-alone, as shown below in the screenshots.
Thanks
SimpleChartData
Code:
public class SimpleChartData extends Record {
public SimpleChartData(String sysUpdatedOn, Integer count) {
setAttribute("updatedOn", sysUpdatedOn);
setAttribute("count", count);
}
public static SimpleChartData[] getData() {
SimpleChartData[] data = new SimpleChartData[24];
for (int i = 0; i < data.length; i++) {
data[i] = new SimpleChartData("2020-11-12 13:00:00.00" + i + " -0500 (1)", 1);
}
return data;
}
}
Code:
public class Sandbox9 implements EntryPoint {
@Override
public void onModuleLoad() {
Window window = new Window();
window.setWidth("50%");
window.setHeight("50%");
FacetChart chart = getChart();
window.setTitle("Sandbox9");
window.addItem(chart);
window.draw();
};
private FacetChart getChart() {
FacetChart chart = new FacetChart();
chart.setData(SimpleChartData.getData());
chart.setFacets(new Facet("updatedOn", ""));
chart.setValueProperty("count");
chart.setChartType(ChartType.PIE);
chart.setShowTitle(Boolean.FALSE);
return chart;
}
}
Comment