Hello everyone...
I am trying to use Ultradatachart(16.2) in Openedge V11.2.
I'm trying to format the labels on the chart. For example: instead of showing 12,000,000 must shows 12 M.
To be able to do this I must subscribe to the event "FormatLabel" of the CategoryX axis
C Subscribe Example:
CategoryX.FormatLabel + = new AxisFormatLabelHandler (Eventthatrunstheformat);
C Event:
string Eventthatrunstheformat(AxisLabelInfo info)
{
decimal value = (decimal)info.Value;
return Utilities.GetDisplayValueInMillions(value, 0, MillionsSuffix);
}
I never subscribe to an event that returns a value (In this case String).
Can someone guide me on how to subscribe?
The ABL does not support handling .NET events that are not derived from the System.EventHandler delegate.
So you'll have to implement that bit in C#, bundle the functioanlity in a custom .NET Assembly and use that from within the ABL in connection to the UltraDataChart class.