-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathChart.spec.tsx.snap
60 lines (58 loc) · 1.4 KB
/
Chart.spec.tsx.snap
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Chart renders svg chart container with the right slots 1`] = `
<div
class="ez-viz"
style="width: 800px; height: 600px;"
>
<div class="ez-fragment-tooltip">
<div class="ez-fragment-filter">
<div class="ez-chart">
<svg
class="ez-svg"
style="width: 800px; height: 600px;"
>
<g transform="translate(20, 10)">
<div>
Default Slot
</div>
</g>
</svg>
</div>
<div>
Legend Slot
</div>
</div>
<div>
Tooltip Slot
</div>
</div>
</div>
`;
exports[`Chart should provide the chart data to the children components 1`] = `
<div
class="ez-viz"
style="width: 800px; height: 600px;"
>
<div class="ez-fragment-tooltip">
<div class="ez-fragment-filter">
<div class="ez-chart">
<svg
class="ez-svg"
style="width: 800px; height: 600px;"
>
<g transform="translate(20, 10)">
<div>
[{"id":"1","label":"Alpha","value":50,"value1":65,"amount":10},{"id":"2","label":"Beta","value":100,"value1":120,"amount":20},{"id":"3","label":"Gamma","value":75,"value1":90,"amount":30}]
</div>
</g>
</svg>
</div>
</div>
<div
class="ez-tooltip"
style="left: 0px; top: 0px; opacity: 0;"
>
</div>
</div>
</div>
`;