helgasoft commented on issue #18219: URL: https://github.com/apache/echarts/issues/18219#issuecomment-1412654832
Easier if using a [dataset](https://echarts.apache.org/en/tutorial.html#Data%20Transform) with trasformations - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=GYVwdgxgLglg9mABBCAKADgSkQbwE4CmUIeS6AdAG4CGANiAQNoCMAugNyIC-AsAFBx0sBIgC8ufgA8AgpJgBnAFy4uAGkQBPWQuU41yOLTh5FjAOSEAJmdVmARvQI2zAc0IEwZ1qv60CLj0tdRH5ERAB6cMRLaihqZUYcMGoAWwJFMwBhWmp5eWYzfSTU9KycvMQAFQB3OEL1YrSM7Nz5KoALd0LvUMQoAkkoAGUoDT9dYARhmAAvdMRmABZ1CENjZRRePjVfajsCWl1e-Xa4auUoPAZEHz4w9Dh5GGEwZQsYF3aoG17JvBTYv0TIgzDgAALJNJcMz8HZ8GJxeREBI4Y5wEgQeaMXrmSFOdRmVZGPDOSgFWyUABMXluYXM1DcMAgIFoxEI6j-BHklw06moYBgANoiHaIHkdn5ljwvMQwAU7QI0psIKsyuY6gAzBqAGzMSk9O6IcwAWRgArALmVFgI1nUlPU2oADABWRaLA10szSFBwFIpOAI-BISWITKxRVmy22BwMZUADnUiy1cf1tKNZgAkmA_gCXlU8Pz5CkFE8EOohnBgFBqtRCIgQ1mc7Eg4gs5YxTyrTH8YgAJzqPWUxYAdjjHvTAHVw3gDGAkXgaJAZR5KDA8Ag0mAoPWwJZEOgQA4mbLqBAYLRnjAuYgAckApvvrY3AQPDYlonh8PnY7x-YAEpcjAlgeNu86rpi8jqIQ6DUGubQhnAUAKjOYFMlyzjPq-A7Oh-zqfqwvQEdstw4H0BZzjmuijOg8xmHKrKKsqqzZh8wSWIKHilq8IJEsYyo0 I4byqtw3BwqRlyFpRuDUbR9FAkxCByi4bEcXOQZvLxJLqAJDBvN2ZgiVwYlkZJxgpFRGg0W8cmMSsimsbg0SqVxGlrFpiA6bRmGeIZcIGvOV5KEavTiZZtHyBAgK2Yg8gaCkdiGEMszzMwOGIHibwtBUADyYD4r0YQIrkRBtgMyjqiEhphB4qzAbokhvGSyoaI11L6AViDPAQKQjGM8w4JpGwQFsYRwmEoVWSCEVRe5sXxYlyXlWlGUgllbQ1HUaaFbExVQKVDWIPalVhNVkABv1B1mE16gtSCVL1MdJ1dT1ozjLgg3IBA3C9GNjkyW801QPJ6hzQltBJXMS3qCtZStB0XRbdEO1Intu5lYgGrqB1NXnfVjXkporUPR1z29W9A1uUN32Gn5sLsEAA) Also, [legend.data](https://echarts.apache.org/en/option.html#legend.data) docs lets you believe that format ```data: ['Class One', 'Class Two', 'Class Three']``` is possible, but it's not. The only format available is ```data: [{name:'Class One'}, {name:'Class Two'}, {name:'Class Three'}]``` and **only** when series names match. So in general _legend.data_ is not a good idea, just let it pick up automatically the names from series.  -- 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]
