Commit ffcc636
committed
fix(alignTicks): Change alignTick strategy: (1) Previously some series data may be out of the calculated extent and can not be displayed. (2) Previously the precision is incorrect for small float number (fixed at 10 rather than based on the magnitude of the value). (3) Make the tick precision more acceptable when min/max of axis is fixed, and remove console warning, because whey can be specified when dataZoom dragging. (4) Clarify the related code for LogScale.
1 parent d168bf2 commit ffcc636Copy full SHA for ffcc636
24 files changed
+1,459-382Lines changed: 1459 additions & 382 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
- coord
- cartesian
- parallel
- polar
- radar
- single
- export/api
- scale
- util
- test
- runTest
- actions
- marks
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/coord/axisAlignTicks.ts
Copy file name to clipboardExpand all lines: src/coord/axisAlignTicks.ts+240-94Lines changed: 240 additions & 94 deletions
Large diffs are not rendered by default.
Collapse file
src/coord/axisCommonTypes.ts
Copy file name to clipboardExpand all lines: src/coord/axisCommonTypes.ts+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
210 | 210 | |
211 | 211 | |
212 | 212 | |
213 | | - |
| 213 | + |
214 | 214 | |
215 | 215 | |
216 | | - |
| 216 | + |
217 | 217 | |
218 | 218 | |
219 | 219 | |
|
Collapse file
+61-64Lines changed: 61 additions & 64 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | | - |
| 49 | + |
50 | 50 | |
51 | 51 | |
52 | 52 | |
| 53 | + |
53 | 54 | |
54 | 55 | |
55 | 56 | |
56 | 57 | |
57 | 58 | |
58 | | - |
| 59 | + |
59 | 60 | |
60 | 61 | |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
65 | 69 | |
66 | | - |
67 | | - |
68 | | - |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
69 | 78 | |
70 | 79 | |
71 | 80 | |
| ||
82 | 91 | |
83 | 92 | |
84 | 93 | |
85 | | - |
| 94 | + |
86 | 95 | |
87 | 96 | |
88 | 97 | |
| ||
102 | 111 | |
103 | 112 | |
104 | 113 | |
105 | | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
112 | 118 | |
113 | 119 | |
114 | 120 | |
| ||
151 | 157 | |
152 | 158 | |
153 | 159 | |
154 | | - |
155 | | - |
156 | | - |
157 | 160 | |
158 | 161 | |
159 | | - |
160 | | - |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
161 | 167 | |
162 | | - |
163 | | - |
164 | | - |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
| 168 | + |
169 | 169 | |
170 | | - |
171 | | - |
172 | | - |
| 170 | + |
| 171 | + |
173 | 172 | |
174 | 173 | |
175 | | - |
| 174 | + |
176 | 175 | |
177 | | - |
178 | | - |
179 | | - |
| 176 | + |
| 177 | + |
| 178 | + |
180 | 179 | |
181 | 180 | |
182 | 181 | |
| ||
185 | 184 | |
186 | 185 | |
187 | 186 | |
188 | | - |
189 | | - |
190 | | - |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
191 | 192 | |
192 | 193 | |
193 | 194 | |
194 | | - |
195 | | - |
196 | | - |
197 | | - |
198 | | - |
199 | | - |
200 | | - |
201 | | - |
202 | | - |
203 | | - |
204 | | - |
205 | | - |
206 | | - |
207 | | - |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
214 | | - |
215 | | - |
216 | | - |
217 | | - |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
218 | 216 | |
219 | 217 | |
220 | 218 | |
| ||
303 | 301 | |
304 | 302 | |
305 | 303 | |
306 | | - |
307 | 304 | |
308 | 305 | |
309 | 306 | |
|
Collapse file
src/coord/axisModelCommonMixin.ts
Copy file name to clipboardExpand all lines: src/coord/axisModelCommonMixin.ts+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | | - |
35 | | - |
| 34 | + |
36 | 35 | |
37 | 36 | |
38 | 37 | |
|
Collapse file
src/coord/cartesian/Grid.ts
Copy file name to clipboardExpand all lines: src/coord/cartesian/Grid.ts+77-31Lines changed: 77 additions & 31 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
| 35 | + |
35 | 36 | |
36 | 37 | |
37 | 38 | |
| ||
124 | 125 | |
125 | 126 | |
126 | 127 | |
127 | | - |
128 | 128 | |
129 | 129 | |
130 | | - |
131 | | - |
132 | | - |
133 | | - |
134 | 130 | |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
146 | 135 | |
147 | 136 | |
148 | 137 | |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
| 138 | + |
153 | 139 | |
154 | 140 | |
155 | | - |
156 | | - |
157 | | - |
158 | | - |
159 | | - |
160 | | - |
| 141 | + |
| 142 | + |
| 143 | + |
161 | 144 | |
162 | | - |
163 | | - |
| 145 | + |
164 | 146 | |
165 | 147 | |
| 148 | + |
166 | 149 | |
167 | | - |
| 150 | + |
168 | 151 | |
169 | | - |
170 | | - |
| 152 | + |
| 153 | + |
171 | 154 | |
172 | 155 | |
173 | 156 | |
| ||
450 | 433 | |
451 | 434 | |
452 | 435 | |
| 436 | + |
| 437 | + |
| 438 | + |
453 | 439 | |
454 | 440 | |
455 | 441 | |
| ||
698 | 684 | |
699 | 685 | |
700 | 686 | |
| 687 | + |
| 688 | + |
| 689 | + |
| 690 | + |
| 691 | + |
| 692 | + |
| 693 | + |
| 694 | + |
| 695 | + |
| 696 | + |
| 697 | + |
| 698 | + |
| 699 | + |
| 700 | + |
| 701 | + |
| 702 | + |
| 703 | + |
| 704 | + |
| 705 | + |
| 706 | + |
| 707 | + |
| 708 | + |
| 709 | + |
| 710 | + |
| 711 | + |
| 712 | + |
| 713 | + |
| 714 | + |
| 715 | + |
| 716 | + |
| 717 | + |
| 718 | + |
| 719 | + |
| 720 | + |
| 721 | + |
| 722 | + |
| 723 | + |
| 724 | + |
| 725 | + |
| 726 | + |
| 727 | + |
| 728 | + |
| 729 | + |
| 730 | + |
| 731 | + |
| 732 | + |
| 733 | + |
| 734 | + |
| 735 | + |
| 736 | + |
| 737 | + |
| 738 | + |
| 739 | + |
| 740 | + |
| 741 | + |
| 742 | + |
| 743 | + |
| 744 | + |
| 745 | + |
| 746 | + |
701 | 747 | |
702 | 748 | |
703 | 749 | |
|
Collapse file
src/coord/cartesian/defaultAxisExtentFromData.ts
Copy file name to clipboardExpand all lines: src/coord/cartesian/defaultAxisExtentFromData.ts+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
241 | 241 | |
242 | 242 | |
243 | 243 | |
244 | | - |
| 244 | + |
245 | 245 | |
246 | 246 | |
247 | 247 | |
|
0 commit comments