|
Upper gridline overlays bar label |
Posted by Michael P on Nov-22-2019 16:51 |
|
Hi Peter,
I got the strange problem that in a barchart, the upper grid line is drawn over the bars aggregate labels (see screenshot, second and forth row).
TextBox* p_bar_top_label = p_bar_layer->setAggregateLabelStyle(...);
Setting ZOrder did not help, e.g.
p_bar_top_label->setZOrder(Chart::GridLinesZ + 1);
ChartDir version: 6.3 C++ in Qt
Any idea?
Thanks, Michael
|
Re: Upper gridline overlays bar label |
Posted by Peter Kwan on Nov-22-2019 20:47 |
|
Hi Michael,
The top line probably is not the upper grid line. It is the plot area border. When you configure the plot area using XYChart::setPlotArea, try to set the plot area border color to Chart::Transparent.
Regards
Peter Kwan |
Re: Upper gridline overlays bar label |
Posted by Michael P on Nov-22-2019 22:02 |
|
Yes, that's it.
But without plot edge it is not looking good. Probably better to set a bigger offset at the top ...
thanks! |
|