Renderer Class
+ + + + +The Renderer class is a base class for chart components that use the styles
+attribute.
-
+
- Index + + +
- Methods + + +
- Properties + + +
- Attributes + + +
Item Index
+ + +Methods
+ +-
+
+
- + _getDefaultStyles + + + + + +
- + _mergeStyles + + + + + +
- + _setStyles + + + + + +
Properties
+ +-
+
+
- + _styles + + + + + +
Methods
+ + +_getDefaultStyles
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+ protected
+
+
+
+
+
+
+
+
+
+
+
+
+ Gets the default value for the styles attribute.
Returns:
+ +_mergeStyles
+
+
+ -
+
+
-
+
+
a+ +
+
+ -
+
+
b+ +
+
+
Merges to object literals so that only specified properties are +overwritten.
+Parameters:
+ + +Returns:
+ +_setStyles
+
+
+ -
+
+
-
+
+
newStyles+ +
+
+
Method used by styles setter.
Parameters:
+ +-
+
+
-
+
+
newStyles+ Object + + + + +++ + +Hash of properties to update.
+
+
+
Returns:
+ +Properties
+ + +_styles
+ Object
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+ Storage for styles attribute.
Attributes
+ + +graphic
+ Graphic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The graphic in which drawings will be rendered.
+Fires event graphicChange
+
+
+ Fires when the value for the configuration attribute graphic is
+ changed. You can listen for the event using the on method if you
+ wish to be notified before the attribute's value has changed, or
+ using the after method if you wish to be notified after the
+ attribute's value has changed.
+
Parameters:
+ +-
+
-
+
e+ EventFacade + ++ An Event Facade object with the following + attribute-specific properties added: ++ +-
+
-
+
prevVal+ Any +The value of the attribute, prior to it being set.+
+ -
+
newVal+ Any +The value the attribute is to be set to.+
+ -
+
attrName+ String +The name of the attribute being set.+
+ -
+
subAttrName+ String +If setting a property within the attribute's value, the name of the sub-attribute property being set.+
+
+ -
+
styles
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Style properties for class
+Fires event stylesChange
+
+
+ Fires when the value for the configuration attribute styles is
+ changed. You can listen for the event using the on method if you
+ wish to be notified before the attribute's value has changed, or
+ using the after method if you wish to be notified after the
+ attribute's value has changed.
+
Parameters:
+ +-
+
-
+
e+ EventFacade + ++ An Event Facade object with the following + attribute-specific properties added: ++ +-
+
-
+
prevVal+ Any +The value of the attribute, prior to it being set.+
+ -
+
newVal+ Any +The value the attribute is to be set to.+
+ -
+
attrName+ String +The name of the attribute being set.+
+ -
+
subAttrName+ String +If setting a property within the attribute's value, the name of the sub-attribute property being set.+
+
+ -
+
