* `DatasetController.addElementAndReset`
* `Element.getArea`
* `Element.height`
+* `Element.initialize`
* `Element.inLabelRange`
* `IPlugin.afterScaleUpdate`. Use `afterLayout` instead
* `Line.calculatePointY`
_chart: me,
_data: me.data,
_options: me.options.tooltips
- }, me);
+ });
},
/**
helpers.extend(this, configuration);
// this.hidden = false; we assume Element has an attribute called hidden, but do not initialize to save memory
-
- this.initialize.apply(this, arguments);
}
- initialize() {}
-
pivot(animationsDisabled) {
var me = this;
if (animationsDisabled) {
}
class Tooltip extends Element {
+ constructor(config) {
+ super(config);
+
+ this.initialize();
+ }
+
initialize() {
var me = this;
me._model = getBaseModel(me._options);
*/
class Legend extends Element {
- initialize(config) {
- var me = this;
+ constructor(config) {
+ super();
+
+ const me = this;
helpers.extend(me, config);
// Contains hit boxes for each dataset (in dataset order)
* IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!
*/
class Title extends Element {
- initialize(config) {
+ constructor(config) {
+ super();
+
var me = this;
helpers.extend(me, config);