Vaadin Charts Border Color

I’ve been digging around the book and api docs for about an hour, but I can’t figure out how to change the border color of a chart. I’ve been able to effect everything else except for the border. Can someone please give me a pointer?

I’ve also played with css box sizing together with a styled div to contain the chart. This works unless I push additions to my series. For some reason, the SVG expands beyond its initial bounds once access() finishes.

Here’s a snippet from my chart just in case it helps…

Style style = new Style();
style.setColor(new SolidColor("#CCCCCC"));
style.setFontSize("12px");

Configuration conf = new Configuration();
conf.getChart().setType(ChartType.SPLINE);
conf.getChart().setBorderWidth(4);
conf.getTitle().setText("Active Messages - 5 Second Average");
conf.getTitle().setStyle(style);
conf.getTooltip().setEnabled(false);
conf.getLegend().setEnabled(false);

13417.png


Background.java
api.
please try…

getConfiguration().getChart().setBorderColor(SolidColor.BLACK);

I’m confused. getChart() returns ChartModel, but ChartModel does not have an option to setBorderColor.


ChartModel.html

Hi,

I think the property misses a proper Java API at this point. I created a ticket for it:

http://dev.vaadin.com/ticket/13266

cheers,
matti