Skip to content

Commit 7ef8d81

Browse files
committed
Fixed indentation in preset examples.
1 parent b32273f commit 7ef8d81

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+516
-555
lines changed

test/integration/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@
77
},
88
"type": "commonjs",
99
"dependencies": {
10-
"yargs": "*",
1110
"aggregate-error": "*",
12-
"p-limit": "*",
13-
"selenium-webdriver": "*",
14-
"chromedriver": "*",
15-
"express": "*",
16-
"serve-static": "*",
17-
"node-fetch": "<3.0.0",
1811
"ajv": "*",
12+
"chromedriver": "^103.0.0",
1913
"colors": "1.4.0",
20-
"strip-color": "*",
14+
"express": "*",
15+
"node-fetch": "<3.0.0",
16+
"p-limit": "*",
17+
"pixelmatch": "*",
2118
"pngjs": "*",
22-
"pixelmatch": "*"
19+
"selenium-webdriver": "^4.3.1",
20+
"serve-static": "*",
21+
"strip-color": "*",
22+
"yargs": "*"
2323
},
2424
"devDependencies": {
25-
"jest": "*",
26-
"jest-extended": "*"
25+
"jest": "^28.1.2",
26+
"jest-extended": "^3.0.0"
2727
}
2828
}

test/integration/test_cases/web_content/preset/02_C_R_column.mjs

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,26 @@ const testSteps = [
44
chart => chart.animate(
55
{
66
data: data,
7-
config: chart.constructor.presets.column({
8-
x:'Joy factors',
9-
y:'Value 2 (+)',
10-
title: 'Column Chart'
11-
}),
7+
config: chart.constructor.presets.column({
8+
x: 'Joy factors',
9+
y: 'Value 2 (+)',
10+
title: 'Column Chart'
11+
}),
1212
style: {
13-
plot: {
14-
paddingLeft: '8em',
15-
yAxis: {
16-
label: {
17-
paddingRight: '0.8em'
18-
}
19-
},
20-
xAxis: {
21-
label: { paddingTop: '0.8em' }
22-
}
13+
plot: {
14+
paddingLeft: '8em',
15+
yAxis: {
16+
label: {
17+
paddingRight: '0.8em'
18+
}
19+
},
20+
xAxis: {
21+
label: { paddingTop: '0.8em' }
2322
}
23+
}
2424
}
2525
}
26-
),
27-
chart => chart.feature('tooltip',true)
26+
)
2827
];
2928

3029
export default testSteps;

test/integration/test_cases/web_content/preset/03_C_R_grouped_column_negative.mjs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,28 @@ const testSteps = [
1010
record.Country == 'Bulgaria' ||
1111
record.Country == 'Cyprus' ||
1212
record.Country == 'Denmark' ||
13-
record.Country == 'Hungary'
13+
record.Country == 'Hungary'
14+
}),
15+
config: chart.constructor.presets.groupedColumn({
16+
x: 'Country',
17+
y: 'Value 5 (+/-)',
18+
groupedBy: 'Joy factors',
19+
title: 'Grouped Column Chart'
1420
}),
15-
config: chart.constructor.presets.groupedColumn({
16-
x:'Country',
17-
y:'Value 5 (+/-)',
18-
groupedBy: 'Joy factors',
19-
title: 'Grouped Column Chart'
20-
}),
2121
style:
2222
{
2323
plot: {
2424
paddingLeft: '1.2em',
2525
yAxis: {
2626
label: { paddingRight: '0.8em' }
27-
},
27+
},
2828
xAxis: {
2929
label: { paddingTop: '0.8em' }
30-
}
30+
}
3131
}
3232
}
3333
}
34-
),
35-
chart => chart.feature('tooltip',true)
34+
)
3635
];
3736

3837
export default testSteps;

test/integration/test_cases/web_content/preset/04_C_R_stacked_column.mjs

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,34 @@ const testSteps = [
55
{
66
data: Object.assign(data, {
77
filter: record =>
8-
record.Country == 'Austria' ||
9-
record.Country == 'Belgium' ||
10-
record.Country == 'Bulgaria' ||
11-
record.Country == 'Cyprus' ||
12-
record.Country == 'Czechia' ||
13-
record.Country == 'Denmark'
14-
}),
8+
record.Country == 'Austria' ||
9+
record.Country == 'Belgium' ||
10+
record.Country == 'Bulgaria' ||
11+
record.Country == 'Cyprus' ||
12+
record.Country == 'Czechia' ||
13+
record.Country == 'Denmark'
14+
}),
1515
config: chart.constructor.presets.stackedColumn({
16-
x:'Country',
17-
y:'Value 2 (+)',
18-
stackedBy: 'Joy factors',
16+
x: 'Country',
17+
y: 'Value 2 (+)',
18+
stackedBy: 'Joy factors',
1919
title: 'Stacked Column Chart'
2020
}),
2121
style: {
22-
plot: {
23-
paddingLeft: '1.2em',
24-
yAxis: {
25-
label: {
26-
paddingRight: '0.8em'
27-
}
28-
},
29-
xAxis: {
30-
label: { paddingTop: '0.8em' }
31-
}
22+
plot: {
23+
paddingLeft: '1.2em',
24+
yAxis: {
25+
label: {
26+
paddingRight: '0.8em'
27+
}
28+
},
29+
xAxis: {
30+
label: { paddingTop: '0.8em' }
3231
}
32+
}
3333
}
3434
}
35-
),
36-
chart => chart.feature('tooltip',true)
35+
)
3736
];
3837

3938
export default testSteps;

test/integration/test_cases/web_content/preset/05_C_R_splitted_column.mjs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ const testSteps = [
55
{
66
data: data,
77
config: chart.constructor.presets.splittedColumn({
8-
x:'Year',
9-
y:'Value 2 (+)',
8+
x: 'Year',
9+
y: 'Value 2 (+)',
1010
splittedBy: 'Joy factors',
1111
title: 'Splitted Column Chart'
12-
}),
12+
}),
1313
style: {
1414
plot: {
1515
paddingLeft: '1.2em',
1616
yAxis: {
1717
label: {
18-
paddingRight: '0.8em'
18+
paddingRight: '0.8em'
1919
}
2020
},
2121
xAxis: {
@@ -24,9 +24,7 @@ const testSteps = [
2424
}
2525
}
2626
}
27-
),
28-
29-
chart => chart.feature('tooltip',true)
27+
)
3028
];
3129

3230
export default testSteps;

test/integration/test_cases/web_content/preset/06_C_R_percentage_column.mjs

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,34 @@ const testSteps = [
55
{
66
data: Object.assign(data, {
77
filter: record =>
8-
record.Country == 'Austria' ||
9-
record.Country == 'Belgium' ||
10-
record.Country == 'Bulgaria' ||
11-
record.Country == 'Cyprus' ||
12-
record.Country == 'Czechia' ||
13-
record.Country == 'Denmark'
14-
}),
15-
config: chart.constructor.presets.percentageColumn({
16-
x:'Country',
17-
y:'Value 2 (+)',
18-
stackedBy: 'Joy factors',
19-
title: 'Percentage Column Chart'
20-
}),
8+
record.Country == 'Austria' ||
9+
record.Country == 'Belgium' ||
10+
record.Country == 'Bulgaria' ||
11+
record.Country == 'Cyprus' ||
12+
record.Country == 'Czechia' ||
13+
record.Country == 'Denmark'
14+
}),
15+
config: chart.constructor.presets.percentageColumn({
16+
x: 'Country',
17+
y: 'Value 2 (+)',
18+
stackedBy: 'Joy factors',
19+
title: 'Percentage Column Chart'
20+
}),
2121
style: {
22-
plot: {
23-
paddingLeft: '1.2em',
24-
yAxis: {
25-
label: {
26-
paddingRight: '0.8em'
27-
}
28-
},
29-
xAxis: {
30-
label: { paddingTop: '0.8em' }
31-
}
22+
plot: {
23+
paddingLeft: '1.2em',
24+
yAxis: {
25+
label: {
26+
paddingRight: '0.8em'
27+
}
28+
},
29+
xAxis: {
30+
label: { paddingTop: '0.8em' }
3231
}
32+
}
3333
}
3434
}
35-
),
36-
chart => chart.feature('tooltip',true)
35+
)
3736
];
3837

3938
export default testSteps;

test/integration/test_cases/web_content/preset/08_C_R_waterfall.mjs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ const testSteps = [
77
filter: record => record.Country == 'Belgium'
88
}),
99
config: chart.constructor.presets.waterfall({
10-
x:'Year',
11-
y:'Value 5 (+/-)',
10+
x: 'Year',
11+
y: 'Value 5 (+/-)',
1212
title: 'Waterfall Chart'
13-
}),
13+
}),
1414
style:
1515
{
1616
plot: {
1717
paddingLeft: '8em',
1818
marker: {
19-
colorGradient:
20-
[
21-
'#ff001b 0',
22-
'#ff001b 0.5',
23-
'#7e79e8 0.5',
24-
'#7e79e8 1'
25-
].join(),
19+
colorGradient:
20+
[
21+
'#ff001b 0',
22+
'#ff001b 0.5',
23+
'#7e79e8 0.5',
24+
'#7e79e8 1'
25+
].join(),
2626
label: {
2727
position: 'top'
2828
}
2929
},
3030
yAxis: {
3131
label: {
32-
paddingRight: '0.8em'
32+
paddingRight: '0.8em'
3333
}
3434
},
3535
xAxis: {
@@ -38,8 +38,7 @@ const testSteps = [
3838
}
3939
}
4040
}
41-
),
42-
chart => chart.feature('tooltip',true)
41+
)
4342
];
4443

4544
export default testSteps;

test/integration/test_cases/web_content/preset/09_C_R_stacked_mekko.mjs

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,35 @@ const testSteps = [
44
chart => chart.animate(
55
{
66
data: Object.assign(data, {
7-
filter: record =>
8-
record.Country == 'Bulgaria' ||
9-
record.Country == 'Germany' ||
10-
record.Country == 'Malta' ||
7+
filter: record =>
8+
record.Country == 'Bulgaria' ||
9+
record.Country == 'Germany' ||
10+
record.Country == 'Malta' ||
1111
record.Country == 'Lithuania'
1212
}),
1313
config: chart.constructor.presets.mekko({
14-
x:'Value 1 (+)',
15-
y:'Value 2 (+)',
16-
stackedBy:'Joy factors',
17-
groupedBy:'Country',
14+
x: 'Value 1 (+)',
15+
y: 'Value 2 (+)',
16+
stackedBy: 'Joy factors',
17+
groupedBy: 'Country',
1818
title: 'Stacked Mekko Chart'
19-
}),
19+
}),
2020
style: {
2121
plot: {
2222
paddingLeft: '1.2em',
2323
yAxis: {
2424
label: {
25-
paddingRight: '0.8em'
25+
paddingRight: '0.8em'
2626
}
2727
},
2828
xAxis: {
29-
title: { paddingTop: '2.4em' },
30-
label: { paddingTop: '0.8em' }
29+
title: { paddingTop: '2.4em' },
30+
label: { paddingTop: '0.8em' }
3131
}
3232
}
3333
}
3434
}
35-
),
36-
chart => chart.feature('tooltip',true)
35+
)
3736
];
3837

3938
export default testSteps;

0 commit comments

Comments
 (0)