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

Message ListMessage List     Post MessagePost Message

  Code examples for Chart Gallery
Posted by Dean Davis on Jun-17-2015 04:28
Are there code examples for how to achieve the exact results of charts in the chart gallery.
Specifically I'm look for code for these linear meters...
http://www.advsofteng.com/gallery_meter3.html

I've been experimenting and have come close but I'm just curious to see the exact code used
to produce these charts.

Thanks.

  Re: Code examples for Chart Gallery
Posted by Peter Kwan on Jun-17-2015 15:32
Hi Dean,

Most of the charts in the gallery comes from the sample code included in the ChartDirector
distribution. The charts you see in http://www.advsofteng.com/gallery_meter3.html come
from the ChartDirector 6.0 sample code. For example, the white bar meters are from:

http://www.advsofteng.com/doc/cdnet.htm#whitevbarmeter.htm

Are you using ChartDirector 6.0?

Regards
Peter Kwan

  Re: Code examples for Chart Gallery
Posted by Dean Davis on Jun-17-2015 20:09
Thanks.
I was looking here...
http://www.advsofteng.com/doc/cdcpp.htm#whitevlinearmeter.htm

Maybe in your spare time you could update the gallery pages with some links to the docs so
they are connected. :)

Thanks again.

  Re: Code examples for Chart Gallery
Posted by Peter Kwan on Jun-18-2015 03:41
Hi Dean,

Yes, we are thinking about linking the code to the gallery for sometime. We need a more
complicated method as there are 21 editions of the code for different programming
languages and framework (such as if it is a web or desktop application), or 12 editions if we
just count the programming languages but not frameworks.

The gallery chart often is somewhat different from the sample code. For example, we may
use more fonts in the gallery to make the chart looks nicer, but we can only use basic fonts
in the sample code because the sample code needs to run on Linux and FreeBSD and they
may not have so many fonts. Apart from that, we may also change the dimension of the
gallery chart to fit the web page.

Regards
Peter Kwan