Hi, I'm afraid legend doesn't provide such flexibility. I'd suggest creating it with DOM by yourself and calling `chart.dispatchAction({ type: 'legendSelect', ... })` to control the interaction. Find more at: https://echarts.apache.org/en/api.html#action.legend.legendSelect
Thanks *Ovilia* On Wed, Oct 23, 2024 at 10:25 PM Rishi Atreya < rishi.atr...@publicisresources.com> wrote: > Hi Ovilia, > > > > Thanks for your reply. Appreciate it. > > We are able to solve this issue but however there are few other challenges > which are facing with the echart. > > 1. We have a requirement to make few legends as Read Only labels and other > as it is, like if we click on the legend then it should de-plot and plot > the graph. > > 2. We want to provide a border and background gradient to legends. If we > try to provide border on the root of the legends, it is wrapping all > legends together. > > For reference please find the link to reproduce the issue: > https://echarts.apache.org/examples/en/editor.html?c=bar-y-category-stack&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQOQCGAHhAM70A0x6L7ACsAjQwtQqhIkA9FNgBVNtVh82GYGUo1SanHh4kwATxDUGbABaMAJsADu9WDNj0L1uw8aqr1AGaMArrgA3LAAxoxwjNhs6gBGSvTYwtQOwNouljb2-gC-xDnc6NjUNNBW4vqxad6kAMI4aQwAxAAMbe1cjrIAQtW0YQ2klX2kAOoQVmDmhACMnF2wvaQ1sLYTU8PLtAAqxqbOMUlWnU5LK0Ym-hCiALYAykbFFZLoVVt1g83tHfOnIwPYNL6V4jcaTaawOYLM79Nbg4GwN41XYmMw4CYOP7vDB7XKFAzUZhgB6GJ5EF6Ikb1QF0Zytb4tE49f6hQYIpG0MFTWa_ZnYuEbCkc0go_YudHHaH_C7UPH5fEUcjlckkYo-MAMADMAFIuPpyBRzBrnAAWXX4kFgTA3LXm_SskSMYQAGUY8WwhDApH8svQBWIzAAgqw2M8DHsGAA3KI--jy4iGYPsMPoGUMcKiChpQx6yRWRhgRiEADa9AAsjBOvRtrH5vRRtRjnXtuZ_FWAGLkKt3Avd_zQegAXXj6EU5Goodgxf0Ehe0EYNzFABEIKRqKEwLmXmnnLFGKQt5I2IXQgBrBiYQvYQ-qt3UD0qikWOye72-l7-inUG4gSxsZOPi8PjAKE_iTi4tAQBOcYUp-Lz5oWJaagATC08yai0yHoS0UKapqJroQAnGhsB4SRKEtMOkhwegs6SPOi4MGWTrYLAgZNgiO70HuB4WiQx6MGeF7AFeN5FHeD50S8z62K-PoIjRJDfr-ngAVJkjAaB4FjlBHAKXx6AIUWU4zKh8wzCh5k4eZ-HzMR8zIRhDkzJRcqSOpsAMWKgY-D4EBJAWSjsWJOKoru-4hQJQnOJeUQhdgEkptJ5gvmQ8mwQZsDKX-akIugmlgWYkHQfpCJGSWyFmZCAAcWGQoRUKOQRsDIfZpFOaRLlUSQikeV5DAAGoTNQ6jBZlXE8ZFJ7njFIlxZlCXuklR4pbJaXvtRmXZapk4eflIGFQcxV6RlZUFsZxYzAArCRyGmQ51mQldzUzG1ZHzCaXVuSQfULmKdzUPuoTmLAACi0AUMkIUTRFmVRTN9CxdeC2JYBK2pV66UfltP45bteWwAV2nHTB2NnYhU61SR1WWbAxFQoRtmQq1JEWR1Fmod1frEMOORBEAA > > > > Please let me know if you need more clarifications on the issue. > > Thanks, > Rishi Atreya > > *From: *Ovilia <oviliazh...@gmail.com> > *Date: *Wednesday, 23 October 2024 at 16:04 > *To: *dev@echarts.apache.org <dev@echarts.apache.org>, Rishi Atreya < > rishi.atr...@publicisresources.com> > *Cc: *Fenil Jacob Na <feniljacob...@publicisresources.com>, Chetan Naware > <chetan.naw...@publicisresources.com> > *Subject: *Re: Assistance Required with Overlapping Date Labels in ECharts > > Some people who received this message don't often get email from > oviliazh...@gmail.com. Learn why this is important > <https://aka.ms/LearnAboutSenderIdentification> > > *External to the Groupe / en provenance de l'extérieur du Groupe* > > > > Hi Rishi, > > > > Can you share a link to reproduce the problem? Click the "Share" button at > the bottom of the example page. > > > > Thanks > > > > *Ovilia* > > > > > > On Thu, Oct 17, 2024 at 10:48 PM Rishi Atreya > <rishi.atr...@publicisresources.com.invalid> wrote: > > Hello ECharts Team, > > I hope this message finds you well. > I am currently working with the ECharts library, specifically on a line > chart using the following data: > > data = [ > ["2024-05-02T00:00:00.000Z", 51.63], > ["2024-05-03T00:00:00.000Z", 63.83], > ["2024-05-04T00:00:00.000Z", 60.30], > ["2024-05-05T00:00:00.000Z", 51.68], > ["2024-05-06T00:00:00.000Z", 59.38], > ["2024-06-18T00:00:00.000Z", 61.60], > ["2024-06-19T00:00:00.000Z", 53.98], > ["2024-06-20T00:00:00.000Z", 51.73], > ["2024-06-21T00:00:00.000Z", 58.22], > ["2024-06-22T00:00:00.000Z", 51.63], > ["2024-06-23T00:00:00.000Z", 60.73], > ["2024-06-24T00:00:00.000Z", 63.49], > ["2024-06-25T00:00:00.000Z", 47.08], > ["2024-06-26T00:00:00.000Z", 49.49], > ["2024-06-27T00:00:00.000Z", 49.16], > ["2024-06-28T00:00:00.000Z", 48.72], > ["2024-06-29T00:00:00.000Z", 48.60], > ["2024-06-30T00:00:00.000Z", 53.48], > ["2024-07-01T00:00:00.000Z", 39.06] > ]; > > I am using the chart provided at : “ > https://echarts.apache.org/examples/en/editor.html?c=line-log”. > > I have encountered an issue where the date labels on the x-axis are > overlapping, which makes the chart difficult to read. The labels are not > uniformly plotted. > Could you please provide guidance on how to resolve this issue? I would > greatly appreciate any suggestions for adjusting the label formatting or > spacing to improve readability. > Please note that I cannot rotate the labels and do not wish to implement > zoom functionality. > > Thank you for your support! > > Best regards, > Rishi Atreya > > > > > > > > ------------------------------------------------------------------------ > Disclaimer The information in this email and any attachments may contain > proprietary and confidential information that is intended for the > addressee(s) only. If you are not the intended recipient, you are hereby > notified that any disclosure, copying, distribution, retention or use of > the contents of this information is prohibited. When addressed to our > clients or vendors, any information contained in this e-mail or any > attachments is subject to the terms and conditions in any governing > contract. If you have received this e-mail in error, please immediately > contact the sender and delete the e-mail. > > > > > > ------------------------------------------------------------------------ > Disclaimer The information in this email and any attachments may contain > proprietary and confidential information that is intended for the > addressee(s) only. If you are not the intended recipient, you are hereby > notified that any disclosure, copying, distribution, retention or use of > the contents of this information is prohibited. When addressed to our > clients or vendors, any information contained in this e-mail or any > attachments is subject to the terms and conditions in any governing > contract. If you have received this e-mail in error, please immediately > contact the sender and delete the e-mail. >