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

Message ListMessage List     Post MessagePost Message

  How to draw color Box over the YAxis in XY Chart/
Posted by Murugan on Apr-01-2015 21:01
Attachments:
Hi Peter,

I have a MultiLine XY Chart with two different color datasets but shares the same Yaxis.
Also i will have a scenarios where 4 different collored datasets uses 2 different Yaxis.

I want to provide the user a way to understand which dataset is on which axis. So i like to have the color box on the Yaxis like the below edited image to illustrate whihc dataset is on which YAxis.

How to draw the color box like in the screenshot?
Untitled.png

  Re: How to draw color Box over the YAxis in XY Chart/
Posted by Peter Kwan on Apr-02-2015 03:11
Hi Murugan,

There are many methods. One method is to simply draw the box as text. Some fonts (such
as Arial) contain "square bullet" characters, which is a square box. For example:

//A red square
c.addText(20, 20, "\\u25A0", "Arial", 20, 0xff0000);

Hope this can help.

Regards
Peter Kwan