Hi Dennis,
In the contour chart sample code, the contour chart has dotted grid lines. They are configured in XYChart.setPlotArea, like:
c->setPlotArea(75, 40, 400, 400, -1, -1, -1, c->dashLineColor(0x80000000, Chart::DotLine), -1);
You can replace the dashLineColor with a regular color, and the grid lines will become solid lines:
c->setPlotArea(75, 40, 400, 400, -1, -1, -1, 0x7f000000, -1);
The grid line color in the sample code is semi-transparent black. If you want the grid lines to be easier to see, you may use a fully opaque color:
c->setPlotArea(75, 40, 400, 400, -1, -1, -1, 0x000000, -1);
The grid line width can be set using PlotArea.setGridWidth. For example:
c->getPlotArea()->setGridWidth(2, 2);
Hope this can help.
Regards
Peter Kwan |