pgraham
26 Aug 2009, 6:53 AM
Hi all,
I'm not sure if this is a GXT issue or an OFC issue.
I'm building a chart with the following bit of code:
public class MyChartModel extends ChartModel {
public MyChartModel(ChartDto data) {
super();
Legend legend = new Legend(Position.TOP);
legend.setBackgroundColour(ChartTheme.LEGEND_BACKGROUND_COLOUR);
legend.setBorder(true);
legend.setBorderColour(ChartTheme.LEGEND_BORDER_COLOUR);
legend.setShadow(false);
setLegend(legend);
// ......
}
}
public class ChartTheme {
// ....
public static final String LEGEND_BACKGROUND_COLOUR = "#FFFFFF";
public static final String LEGEND_BORDER_COLOUR = "#A9A1DD";
}
However, when a Chart using a MyChartModel object is rendered there is no border around the legend (Screenshot below).
http://www.lightbox.org/%7Ephilip/snapshot1.png
I'm not sure if this is a GXT issue or an OFC issue.
I'm building a chart with the following bit of code:
public class MyChartModel extends ChartModel {
public MyChartModel(ChartDto data) {
super();
Legend legend = new Legend(Position.TOP);
legend.setBackgroundColour(ChartTheme.LEGEND_BACKGROUND_COLOUR);
legend.setBorder(true);
legend.setBorderColour(ChartTheme.LEGEND_BORDER_COLOUR);
legend.setShadow(false);
setLegend(legend);
// ......
}
}
public class ChartTheme {
// ....
public static final String LEGEND_BACKGROUND_COLOUR = "#FFFFFF";
public static final String LEGEND_BORDER_COLOUR = "#A9A1DD";
}
However, when a Chart using a MyChartModel object is rendered there is no border around the legend (Screenshot below).
http://www.lightbox.org/%7Ephilip/snapshot1.png