helgasoft commented on issue #21742:
URL: https://github.com/apache/echarts/issues/21742#issuecomment-5402721340
What I understand is that you want to add a new data transformation from
this **long** format:
```
dataset: {
dimensions: [
'Country', 'Year', 'Measure'
],
source: [
['Brazil', 2011, 18203],
['Brazil', 2012, 19325],
['Indonesia', 2011, 23489],
['Indonesia', 2012, 23438],
['USA', 2011, 29034],
['USA', 2012, 31000]
]
}
```
To this **pivot** format:
```
dataset: {
dimensions: [
'Country', '2011', '2012', 'total' // each year containing
'Measure' data, 'total' could be 'average' or other aggregate
],
source: [
['Brazil', 18203, 19325, 37528],
['Indonesia', 23489, 23438, 46927],
['USA', 29034, 31000, 60034]
]
}
```
which is more suitable for ECharts manipulation. That would indeed be a
valuable new feature.
It seems such code should be added to repo
[echarts-simple-transform](https://github.com/100pah/echarts-simple-transform).
[Here](https://echarts.apache.org/examples/en/editor.html?code=lVRRa9swEH7Pr7iHgm3aOtnWvSSk0HVsKwwy2r6MEIJinx1ttuRJMrEJ-e87WbLrhL0sECKd7r777ru7XMWHPYpwAnAV52jC59Xqdfvj4fUbXEMwTZlhU6Y1GncseIa32FSYGCaS9tawXYHxLy1FEE2iOJUCw6wWieFSQKhQR3AkaFWL7rKYnOg7OFjzVrHDZ4K2juSZSKENJLWRWbZtkSlYwvvZu9mC3qZT-MJFCqwoQMmDBmKuEMweofO8X44DB7CMF4b80mcbsoQ-YezsYUhQESzvO6J9jM9MT-u7zcJm_mktXHfZPpo9-RV1STUSIWzgLuqCFZpaiX-xsfxt7X2CWvA_NVpQy2kdx7HAA7xQA8Z045JVbwRfjOIit1ciFUXRxoliASV1oZB5OIKlZE6zTzUvSDTQqDhqYFZBsN2krkImFSBL9h3ngZ22pEZYjod1GSnli3UXANNWOIdgx1Rw403asOQ32fRuMKFIZEp-R2jo4YluJQY30NLlUdbCqDaAU-_sST6l845ebxasJARPmGS91DZN_589v8iRKVnaKfHpAxqaoQajmNAkXDmHtTfBADSSwnVyCPPTlfGcyh_ZqE5eotC0ERRkGZ-FAATLYFSu-5yGc3_anItBP32Pab6OrkJXBjVG1iohiv0uwKmbJR8QV7XehzSSaeqAZNWt69LT9m6OpOGmsP3stcHGDI0FzUWCEFxf7CUx9MFSFoZXo3DF8xwVIbCG60GHTjZBaYyqcQzQPJDbW7ibjD77ru1UG1Ds63eZMFsMeZU8TQsavtHrV0ZcPsyG-U2Yre0yaXue1HebcDGXNL9j1wJzFCT80d_dDs5pwWybrOZl-7hnysQk6KqTOXRq2__Kvw&enc=deflate)
is a **workaround** with multiple filter gro
upings.
<img width="706" height="556" alt="Image"
src="https://github.com/user-attachments/assets/660abc6b-ee7d-427b-a0f4-738df5b4f071"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]