Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/js/application/fact/ChartFunctionLabel.js
12242 views
1
/**
2
* @provides javelin-chart-function-label
3
*/
4
JX.install('ChartFunctionLabel', {
5
6
construct: function(spec) {
7
this._name = spec.name;
8
this._color = spec.color;
9
this._icon = spec.icon;
10
this._fillColor = spec.fillColor;
11
},
12
13
members: {
14
_name: null,
15
_color: null,
16
_icon: null,
17
_fillColor: null,
18
19
getColor: function() {
20
return this._color;
21
},
22
23
getName: function() {
24
return this._name;
25
},
26
27
getIcon: function() {
28
return this._icon || 'fa-circle';
29
},
30
31
getFillColor: function() {
32
return this._fillColor;
33
}
34
}
35
});
36
37