-
Notifications
You must be signed in to change notification settings - Fork 0
/
vizSettingsExample.js
61 lines (60 loc) · 2.65 KB
/
vizSettingsExample.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
title: /* the title for the section */,
callOutBoxSettings: {
type: /* "value"|"ranking" */,
variables: [
{variable:/* variable name in data sheet */, displayName:/* label for variable */, format: /* "price"|"number"|"string|"percent"|"year" */},
{variable:/* variable name in data sheet */, displayName:/* label for variable */, format: /* "price"|"number"|"string|"percent"|"year" */},
]
},
paragraphSettings: {
textSections: [/* 'first text section @year' */, /* 'second text section' */, /* 'third text section' */, /* 'fourth text section' */, /* 'fifth text section' */, /* 'sixth text section' */],
variables: [
{variable:/* variable name in data sheet */, format: /* "price"|"number"|"string|"percent"|"year" */},
{variable:/* variable name in data sheet */, format: /* "price"|"number"|"string|"percent"|"year" */},
{variable:/* variable name in data sheet */, format: /* "price"|"number"|"string|"percent"|"year" */},
{variable:/* variable name in data sheet */, format: /* "price"|"number"|"string|"percent"|"year" */},
{variable:/* variable name in data sheet */, format: /* "price"|"number"|"string|"percent"|"year" */},
]
},
source: /* text for sources section */,
indicatorLink: /* path to indicator to link to */
vizSettings: {
/* don't worry about this section */
}
},
{
title: "Enrollment by Student Type",
callOutBoxSettings: {
type: "value",
variables: [
{variable:"ugenroll", displayName:"Rank among all states of lowest average sticker price", format: "number"},
{variable:"gradenroll", displayName:"Graduate Students Enrolled", format: "number"},
]
},
paragraphSettings: {
textSections: ['In @year ', ' enrolled ', ' undergraduate students and ', ' graduate students; ', ' full-time students and ', ' part-time-students;'],
variables: [
{variable:"name", format: "string"},
{variable:"ugenroll", format: "number"},
{variable:"gradenroll", format: "number"},
{variable:"ftenroll", format: "number"},
{variable:"ptenroll", format: "number"},
],
},
source: "IPEDS",
indicatorLink: "pell-grants",
vizSettings: {
chart1Settings: {
type: "line-chart",
yAxisLabel: "Students",
variables: [
{variable:"ugenroll", displayName:"Undergraduate", format: "number", color: colors.turquoise.light },
{variable:"gradenroll", displayName:"Graduate", format: "number", color: colors.turquoise.dark},
{variable:"ftenroll", displayName:"Full-time", format: "number", color: colors.purple.light},
{variable:"ptenroll", displayName:"Part-time", format: "number", color: colors.purple.dark},
{variable:"enroll", displayName:"Total", format: "number", color: colors.red.light},
]
}
}
},