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

Message ListMessage List     Post MessagePost Message

  To display individual labels for each plotted point in the Area chart Graph.
Posted by Kishore on Oct-10-2011 17:15
Hi,

  I am unable to display the label for the plotted point in area chart . i.e., suppose i have
points in area chart i need to diplay the value at each and every plotted point in that
graph. Please help me out.


Thanks & Regards,
Kishore.

  Re: To display individual labels for each plotted point in the Area chart Graph.
Posted by Peter Kwan on Oct-11-2011 00:22
Hi Kishore,

You may use Layer.setDataLabelFormat / Layer.setDataLabelStyle to display labels on the data points. For example, in VB/VBScript, it is like:

Set layer = c.addAreaLayer(myData, ....)
Call layer.setDataLabelFormat("{value}")

Hope this can help.

Regards
Peter Kwan

  Re: To display individual labels for each plotted point in the Area chart Graph.
Posted by Kishore on Oct-11-2011 10:16
Thanks for your reply.

Yes I have used those two methods but  my requirement is I will have 4 types like consumption,UPDR,sales,purchase. I need to label  co-ordinates for each and every type in the area graph. If it is only one type it the above methods works fine. but if you want to display multiple type its not displaying in the graph.

  Re: To display individual labels for each plotted point in the Area chart Graph.
Posted by Peter Kwan on Oct-12-2011 02:39
Hi Kishore,

Sorry. I am somewhat confused by what you need. Do you mean you have one data series that you use to plot the area chart, and you want to put some custom labels on the data points? The code would be like:

myCustomLabels = Array("consumption", "UPDR", "Sales ABC", ....)

Set layer = c.addAreaLayer(myData, ....)
Call layer.addExtraField(myCustomLabels)
Call layer.setDataLabelFormat("{field0}")

If the above is not what you need, is it possible to provide a sample image to help me understand what you need?

Regards
Peter Kwan