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

Message ListMessage List     Post MessagePost Message

  Stem and Leaf plots
Posted by Jason on Jan-09-2011 02:18
Hello,

Can Chart Director create stem and leaf plots?  If so can you give any hints on how to do it in Perl or Python?

I'd like to create something like this: http://vis.stanford.edu/protovis/ex/stem-and-leaf.html

Thanks,
Jason

  Re: Stem and Leaf plots
Posted by Peter Kwan on Jan-09-2011 14:32
Hi Jason,

It seems the stem and leaf plots are just a list of text.

To create the chart, you may write some code to generate the text. You can then display the text using the GUI framework of your application (eg. if the GUI is HTML based, you may use HTML table to display the text).

If you would like to use ChartDirector to render the text, you may use BaseChart.addText to add text at any place you like, and BaseChart.addLine to add lines at any place you like.

Hope this can help.

Regards
Peter Kwan

  Re: Stem and Leaf plots
Posted by Jason on Jan-09-2011 20:31
It sounds easier than I thought it would be.  I'll give it a try, thanks!