You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -185,6 +185,8 @@ Examples: [sparkline in matrix](${galleryEditorPath}matrix-sparkline&edit=1&rese
185
185
186
186
> Note: when [coordinateSystemUsage](~${componentNameInLink}.coordinateSystemUsage) is `'data'`, the input of coordinate system is `series.data[i]` rather than this `coord`.
187
187
188
+
The format this `coord` is defined by each coordinate system, and it's the same as the second parameter of [chart.convertToPixel](api.html#echartsInstance.convertToPixel).
Copy file name to clipboardExpand all lines: en/option/series/custom.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,10 +147,10 @@ The first parameter of `renderItem`, including:
147
147
},
148
148
coordSys: {
149
149
type: 'calendar',
150
-
x: // {number} x of calendar rect
151
-
y: // {number} y of calendar rect
152
-
width: // {number} width of calendar rect
153
-
height: // {number} height of calendar rect
150
+
x: // {number} x of the calendar component rect
151
+
y: // {number} y of the calendar component rect
152
+
width: // {number} width of the calendar component rect
153
+
height: // {number} height of the calendar component rect
154
154
cellWidth: // {number} calendar cellWidth
155
155
cellHeight: // {number} calendar cellHeight
156
156
rangeInfo: {
@@ -160,6 +160,13 @@ The first parameter of `renderItem`, including:
160
160
dayCount: // day count in calendar.
161
161
}
162
162
},
163
+
coordSys: {
164
+
type: 'matrix',
165
+
x: // {number} x of the matrix component rect
166
+
y: // {number} y of the matrix component rect
167
+
width: // {number} width of the matrix component rect
168
+
height: // {number} height of the matrix component rect
169
+
},
163
170
coordSys: {
164
171
type: 'geo',
165
172
x: // {number} x of geo rect
@@ -207,12 +214,15 @@ Get value on the given dimension.
207
214
208
215
Convert data to coordinate.
209
216
210
-
```
211
-
@param {Array.<number>} data.
212
-
@return {Array.<number>} Point on canvas, at least includes [x, y].
213
-
In polar, it also contains:
214
-
polar: [x, y, radius, angle]
215
-
```
217
+
The behavior, parameters and returns are the same as [chart.convertToPixel](api.html#echartsInstance.convertToPixel) (only exclude its first parameter `finder`).
218
+
219
+
##### layout(Function)
220
+
221
+
Convert data to the corresponding layout info based on the current coordinate system.
222
+
223
+
The behavior, parameters and returns are the same as [chart.convertToLayout](api.html#echartsInstance.convertToLayout) (only exclude its first parameter `finder`).
224
+
225
+
See [matrix api.layout example](${galleryEditorPath}matrix-mini-bar-data-collection).
Copy file name to clipboardExpand all lines: en/tutorial/media-query.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Besides, sometimes one chart may need to be displayed on both PC and mobile-end,
10
10
To solve this problem, ECharts improved component location algorithm, and implemented responsive ability similar to [CSS Media Query](https://www.w3.org/TR/css3-mediaqueries/).
11
11
12
12
13
-
## Location and layout of ECharts components
13
+
## Location and Layout of ECharts Components
14
14
15
15
16
16
Most *component* and *series* follow two locating methods:
@@ -212,7 +212,11 @@ But if the container DOM node needs to change size with dragging, you need to pa
212
212
213
213
When `chart.setOption(rawOption)` for the second, third, fourth, fifth, and etc. times, if `rawOption` is `composite option` (which means it contains `media` list), then, the new `rawOption.media` list will not merge with the old `media`. instead, it will simply replace the option. Of course, `baseOption` will still merge with the old option normally.
214
214
215
-
<br>
216
-
Finally, let's see an example combining with timeline:
0 commit comments