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

Message ListMessage List     Post MessagePost Message

  treemapchart colours before / after setting border colour
Posted by Craig Roberts on Jan-09-2025 05:33
Attachments:
Hello Peter,

I am running the treemapchart example, Multi level tree map.

I have attached an image of using;

' Set the border color to white (ffffff)
  nodeConfig2.setColors(-1, &HFFFFFF)

and an image without, the chart colours are affected when setting border colours to white.

Do I have a setting wrong.

Regards
Craig Roberts
Image_WithBorders.PNG
Image_WithOutWhiteBorders.PNG

  Re: treemapchart colours before / after setting border colour
Posted by Peter Kwan on Jan-09-2025 14:48
Hi Craig Roberts,

The effect you see is the "raised border" effect controlled by the 3rd argument of TreeMapNode.setColor:

https://www.advsofteng.com/doc/cdnet.htm#TreeMapNode.setColors.htm

I started with the Multi-Level Treemap sample code. The original code uses nodeConfig2.setColors(-1, &HFFFFFF) and it works normally.

I can only reproduce the problem if I modify the code to:

nodeConfig2.setColors(-1, &HFFFFFF, &HFFFFFF)

Would you mind to double check if your actual code contains 3 parameters?

Best Regards
Peter Kwan

  Re: treemapchart colours before / after setting border colour
Posted by Craig Roberts on Jan-10-2025 09:04
Hello Peter,
I added -1 to the below method for raised effect and it removed the raised effect;

nodeConfig.setColors(-1, &HFFFFFF, -1)

Thanks
Craig Roberts