MCPcopy Index your code
hub / github.com/bqplot/bqplot / initialize

Method initialize

js/src/PieModel.ts:61–79  ·  view source on GitHub ↗
(attributes, options)

Source from the content-addressed store, hash-verified

59 }
60
61 initialize(attributes, options) {
62 super.initialize(attributes, options);
63 this.on('change:sizes', this.update_data, this);
64 this.on(
65 'change:color',
66 function () {
67 this.updateColor();
68 this.trigger('colors_updated');
69 },
70 this
71 );
72 this.on('change:labels', this.updateLabels, this);
73
74 this.on_some_change(['preserve_domain'], this.update_domains, this);
75 this.update_data();
76 this.updateColor();
77 this.updateLabels();
78 this.update_domains();
79 }
80
81 update_data() {
82 const sizes = this.get('sizes') || [];

Callers

nothing calls this directly

Calls 4

updateColorMethod · 0.95
update_dataMethod · 0.95
updateLabelsMethod · 0.95
update_domainsMethod · 0.95

Tested by

no test coverage detected