TufteGraph - Integration Tests

Bar

Default

1,000
0
1,300
1
3,600
2
4,000
3
5,200
4
7,000
5
0
6

Static properties

Y
X
Y
X
Y
X
Y
X
Y
X
Y
X
Y
X

Dynamic properties

1000
A
1300
B
3600
C
4000
D
5200
E
7000
F
0
G

Negative Values

1,000
0
-1,300
1
3,600
2
-4,000
3
5,200
4
-7,000
5
0
6

Stacked Bar

Default

3.6
0
5.3
1
4.5
2

Dynamic

3.6
A
5.3
B
4.5
C
0
D

Negative

-3.6
0
5.3
1
-5.5
2
0
3

Legends

Default

3.6
0
5.3
1
4.5
2
0
3
C
B
A

Dynamic

3.6
0
5.3
1
4.5
2
0
3
C2
B1
A0

Use graph colors

3.6
0
5.3
1
4.5
2
0
3
C
B
A

Colors from CSS

1,000
0
1,300
1
3,600
2
4,000
3
5,200
4
7,000
5
0
6

Error Handling

Test Result
Non-numeric y-value for bar graphPass
Non-numeric y-value for stacked graphPass

formatNumber

Input Expected Actual Status
0.990.990.99Pass
100100100Pass
10001,0001,000Pass
9999.99999,999.99999,999.9999Pass
1000000010,000,00010,000,000Pass

Using data from table

1
A
1.3
B
3.6
C
4
D
5.2
E
7
F
Label Amount
A1.0
B1.3
C3.6
D4.0
E5.2
F7.0