-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.js
43 lines (38 loc) · 942 Bytes
/
model.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
define([
"module",
"pentaho/visual/base"
], function(module, baseModelFactory) {
"use strict";
return function(context) {
var BaseModel = context.get(baseModelFactory);
var BarModel = BaseModel.extend({
type: {
id: module.id,
styleClass: "pentaho-visual-samples-bar",
label: "Cohort Compairison ECDF",
defaultView: "./view",
props: [
{
name: "Event",
type: {
base: "pentaho/visual/role/ordinal"
}
},
{
name: "Status",
type: {
base: "pentaho/visual/role/nominal"
}
},
{
name: "Cohort",
type: {
base: "pentaho/visual/role/ordinal"
}
}
]
}
});
return BarModel;
};
});