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

Message ListMessage List     Post MessagePost Message

  Is it possible to highlight the YAxis of XYChart programatically?
Posted by Murugan on Jan-29-2015 14:03
Attachments:
Hi,

I have XYChart in which multiple colored LineLayers uses the same YAxis in multi Axis
chart. So I want to provide the user to understand which line uses which axis. I cannot set
the Axis color since different lines have different colors.

So is it possible to highlight the YAxis when the user Clickes the line or do mouse over the
line?

Please refer the attached image for what i am trying to achieve.

Any suggestions or workarounds are welcome.
Untitled.png

  Re: Is it possible to highlight the YAxis of XYChart programatically?
Posted by Peter Kwan on Jan-30-2015 01:20
Hi Murugan,

Yes. The exact code depends on your programming language and whether it is a desktop or
a web application.

In the sample code "Track Box with Legend", it demonstrates how to draw a rectangle in a
mouse event. For your case, you can use the mouse move event of your data points (the
hot spots defined using getHTMLImageMap) to draw the rectangle. Instead of drawing the
rectangle around the bars as in the sample code, you can draw the rectangle around the
axis. The "Track Line with Axis Labels" sample code demonstrates how to determine the
position of an axis.

Hope this can help.

Regards
Peter Kwan