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

Message ListMessage List     Post MessagePost Message

  Vector in trackBoxLegend
Posted by Olya on Oct-26-2021 21:10
Hello. Help me please. I am adding a VectorLayer to the diagram. I need the direction of the arrow to be displayed in the trackBoxLegend, not the Y coordinate value. How to do it?

  Re: Vector in trackBoxLegend
Posted by Peter Kwan on Oct-27-2021 13:50
Hi Olya,

Are you writing a desktop or web application?

If it is a desktop application, you can always look up the angle value from your data arrays. All the data in the chart come from your code, so your code should already have all the angles. What is needed from ChartDirector is the array index under the mouse. In trackBoxLegend, it is the xIndex variable.

If it is a web application, you would need to transfer the angles array to the browser side as a Javascript array. You can then use the array index to obtain the angle value. If you need more information on how to transfer an array in your programming language to a  Javascript array, please let me know which programming language you are using.

Regards
Peter Kwan