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

Message ListMessage List     Post MessagePost Message

  Loosing X/Y Axis Labels to .PNG
Posted by Chuck on May-02-2026 06:14
Peter,

(in VB.NET) At a high level, I have a several charts in my UI that I interact with that are working fine... every minute, I render my 1M chart to a .PNG (making a copy of it first and apply Y range formatting so the bars fill the view area - which does NOT interfere with the UI version that I interact with - which is the whole reason for the memory copy).

Oddly, the .PNG defaults to a transparent border (where the labels are suppose to reside) and I loose my Labels (they do not appear in the .PNG). But the original is fine, they appear there.

I can share my code... but, every attempt to brute-force writing/enabling the labels on the copy memory object does not produce labels...

Is there something fundamental I am missing my my XY Labels do not appear on the object copy?

Thank you,
Chuck

  Re: Loosing X/Y Axis Labels to .PNG
Posted by Peter Kwan on May-02-2026 14:29
Hi Chuck,

I think the issue is with the "memory copy". Do you make a copy of the chart object, or just make a snapshot copy of your own data? I am not aware how it is possible to clone a VB object that is not explicitly declared to be "Cloneable" or "Serializable".

For a chart object, once it is rendered (eg. displayed on screen), it cannot be modified. The only way to modify a chart (such as to change the axis scale) is to draw another chart. ChartDirector can draw charts fast enough that all the real-time chart examples are drawn this way.

If you need further help, is it possible to provide a simple example that I can try? You can try to modify the "Simple Bar Chart" sample code that comes with ChartDirector to duplicate the problem so I can reproduce it.

Best Regards
Peter Kwan