Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Black border for columns in column chart
I can't seem to find the correct way to set the border color for the columns in a column chart. The default appears to be transparent, which doesn't display well with the number of columns and series that are shown. Any help?
Hi,
there's a borderColor attribute in the HighCharts API (see http://api.highcharts.com/highcharts/plotOptions.column.borderColor ), but it's not available from the default Java PlotOptionsColumn implementation. You can access it with a bit of trickery, though: if you extend the PlotOptionsColumn class and add the following field
private Color borderColor;
with the appropriate setter and getter, you should be able to set the border color just like you can use PlotOptionsColumn.setColor() to set the body color of the column.
Hope this helps,
Olli