Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(1) Enhance dataset default encode guess strategy. Fix #11428, Fix #11419, Fix #11735
(2) Support candlestick in dataset encode guess.
(3) Some refactor of the code arrangement of dataset encode guess and dimension calculation.
Break change of:

<test/dataset-charts.html>
The test case:

<test/dataset-guess.html>
Strategy:
line, bar, pictorialBar, scatter, effectScatter, candlestick, boxplot
[The strategy of the arrengment of data dimensions for dataset]:
several (the number is coordSysDims.length) dimensions from dataset.
The result of data arrengment of data dimensions like:
| ser0_x | ser0_y | ser1_x | ser1_y | ser2_x | ser2_y |
dimension is always mapped to the first category axis and shared by
all of the series. The other data dimensions are taken by series like
"value way" does.
The result of data arrengment of data dimensions like:
| ser_shared_x | ser0_y | ser1_y | ser2_y |
pie, funnel, map
Find the first pure number dim as the value dim,
and then find a name dim with the priority:
"number-like|other string dim" > "other dim" > "the value dim itself".
If the previous strategy is not satisfied (that is, no pure number),
find the first number-like dim as the value dim,
and then find a name dim with the priority:
"other dim" > "the value dim itself".
That is for backward compat: number-like (e.g.,
'3'
,'55'
) can betreated as number.