ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Upper gridline overlays bar label
Posted by Michael P on Nov-22-2019 16:51
Attachments:
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
chartdir_problem_labeloverlayedbygridline.png

  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!