نص الويكي الجديد للصفحة، بعد التعديل (new_wikitext ) | '<graph>{
"version": 2,
"width": 1000,
"height": 1000,
"data": [
{
"name": "table",
"values": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 3
},
{
"x": 2,
"y": 2
},
{
"x": 3,
"y": 4
}
]
}
],
"scales": [
{
"name": "x",
"type": "linear",
"range": "width",
"zero": false,
"domain": {
"data": "table",
"field": "x"
}
},
{
"name": "y",
"type": "linear",
"range": "height",
"nice": true,
"domain": {
"data": "table",
"field": "y"
}
}
],
"axes": [
{
"type": "x",
"scale": "x"
},
{
"type": "y",
"scale": "y"
}
],
"marks": [
{
"type": "area",
"from": {
"data": "table"
},
"properties": {
"enter": {
"x": {
"scale": "x",
"field": "x"
},
"y": {
"scale": "y",
"field": "y"
},
"y2": {
"scale": "y",
"value": 0
},
"fill": {
"value": "steelblue"
},
"interpolate": {
"value": "monotone"
}
}
}
}
]
}</graph>' |
فرق موحد للتغييرات المصنوعة بواسطة التعديل (edit_diff ) | '@@ -1,0 +1,90 @@
+<graph>{
+ "version": 2,
+ "width": 1000,
+ "height": 1000,
+ "data": [
+ {
+ "name": "table",
+ "values": [
+ {
+ "x": 0,
+ "y": 1
+ },
+ {
+ "x": 1,
+ "y": 3
+ },
+ {
+ "x": 2,
+ "y": 2
+ },
+ {
+ "x": 3,
+ "y": 4
+ }
+ ]
+ }
+ ],
+ "scales": [
+ {
+ "name": "x",
+ "type": "linear",
+ "range": "width",
+ "zero": false,
+ "domain": {
+ "data": "table",
+ "field": "x"
+ }
+ },
+ {
+ "name": "y",
+ "type": "linear",
+ "range": "height",
+ "nice": true,
+ "domain": {
+ "data": "table",
+ "field": "y"
+ }
+ }
+ ],
+ "axes": [
+ {
+ "type": "x",
+ "scale": "x"
+ },
+ {
+ "type": "y",
+ "scale": "y"
+ }
+ ],
+ "marks": [
+ {
+ "type": "area",
+ "from": {
+ "data": "table"
+ },
+ "properties": {
+ "enter": {
+ "x": {
+ "scale": "x",
+ "field": "x"
+ },
+ "y": {
+ "scale": "y",
+ "field": "y"
+ },
+ "y2": {
+ "scale": "y",
+ "value": 0
+ },
+ "fill": {
+ "value": "steelblue"
+ },
+ "interpolate": {
+ "value": "monotone"
+ }
+ }
+ }
+ }
+ ]
+}</graph>
' |
السطور المضافة في التعديل (added_lines ) | [
0 => '<graph>{',
1 => ' "version": 2,',
2 => ' "width": 1000,',
3 => ' "height": 1000,',
4 => ' "data": [',
5 => ' {',
6 => ' "name": "table",',
7 => ' "values": [',
8 => ' {',
9 => ' "x": 0,',
10 => ' "y": 1',
11 => ' },',
12 => ' {',
13 => ' "x": 1,',
14 => ' "y": 3',
15 => ' },',
16 => ' {',
17 => ' "x": 2,',
18 => ' "y": 2',
19 => ' },',
20 => ' {',
21 => ' "x": 3,',
22 => ' "y": 4',
23 => ' }',
24 => ' ]',
25 => ' }',
26 => ' ],',
27 => ' "scales": [',
28 => ' {',
29 => ' "name": "x",',
30 => ' "type": "linear",',
31 => ' "range": "width",',
32 => ' "zero": false,',
33 => ' "domain": {',
34 => ' "data": "table",',
35 => ' "field": "x"',
36 => ' }',
37 => ' },',
38 => ' {',
39 => ' "name": "y",',
40 => ' "type": "linear",',
41 => ' "range": "height",',
42 => ' "nice": true,',
43 => ' "domain": {',
44 => ' "data": "table",',
45 => ' "field": "y"',
46 => ' }',
47 => ' }',
48 => ' ],',
49 => ' "axes": [',
50 => ' {',
51 => ' "type": "x",',
52 => ' "scale": "x"',
53 => ' },',
54 => ' {',
55 => ' "type": "y",',
56 => ' "scale": "y"',
57 => ' }',
58 => ' ],',
59 => ' "marks": [',
60 => ' {',
61 => ' "type": "area",',
62 => ' "from": {',
63 => ' "data": "table"',
64 => ' },',
65 => ' "properties": {',
66 => ' "enter": {',
67 => ' "x": {',
68 => ' "scale": "x",',
69 => ' "field": "x"',
70 => ' },',
71 => ' "y": {',
72 => ' "scale": "y",',
73 => ' "field": "y"',
74 => ' },',
75 => ' "y2": {',
76 => ' "scale": "y",',
77 => ' "value": 0',
78 => ' },',
79 => ' "fill": {',
80 => ' "value": "steelblue"',
81 => ' },',
82 => ' "interpolate": {',
83 => ' "value": "monotone"',
84 => ' }',
85 => ' }',
86 => ' }',
87 => ' }',
88 => ' ]',
89 => '}</graph>'
] |