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

Message ListMessage List     Post MessagePost Message

  Lines only contour plot
Posted by Adil on Sep-07-2022 06:25
Hi Peter,

Is it possible for a contour plot to have only lines without color floods between contour lines?
If yes, how to do that.
Thanks
Adil

  Re: Lines only contour plot
Posted by Peter Kwan on Sep-07-2022 16:25
Hi Adil,

Yes, the fill colors are configuration. In particular, you can configure them to be transparent.

int noFillGradient[] = { Chart::Transparent, Chart::Transparent };
myContourLayer->colorAxis()->setColorGradient(false, IntArray(noFillGradient, 2));

There is also a contour chart example with no filling but with colored contour lines.

https://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1622221263#N1622268159

Best Regards
Peter Kwan