class %DeepSee.Component.chartLegend
extends %ZEN.Component.component, %ZEN.Component.dataView
Chart legend component.
This provides an alternate way to display a legend for a Zen chart component.
To use the chart legend you must connect it to a data source using the
controllerId property as well as a chart using the
chartId property. The orientation property
specifies how the legend is layed out.
parameter DEFAULTENCLOSINGCLASS = "dslegendDiv";
Subclasses can set this to change default enclosingClass used for this
component.
parameter NAMESPACE = "http://www.intersystems.com/deepsee";
This is the XML namespace used for library components.
property chartId
as %ZEN.Datatype.id(COMPONENTTYPE="chart");
id of %DeepSee.SVGComponent.chart component this
legend is associated with.
Note: if this component is placed within a composite element, then the
chart must be within the same composite element.
property orientation
as %ZEN.Datatype.string(VALUELIST="horizontal,vertical") [ InitialExpression = "vertical" ];
Specify which way the legend is layed out.
method %DrawHTML()
Static HTML display method: draw the BODY of this component
as HTML.
Subclasses implement this in order to render the static HTML
contents of a component.
method notifyViewHandler(reason, data1, data2, data3)
[ Language = javascript ]
Notification that the dataController associated with this dataView
has raised an event.
method renderContents()
[ Language = javascript ]
Client-side method to render this control.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.
method transformColor(color)
[ Language = javascript ]
Some charts may have use SVG colors. This is a crude translator.