Hi, Apache ECharts doesn't provide a simple way to do this job because this may cause bad split values in some cases, like when max data is 10 and split into 3 causes labels to be "3.3333" and "6.6667".
In most cases, we would suggest setting "splitNumber", to be 4 in your case. But this serves only as a recommendation and may be adjusted when values on split positions are not "nice". If you wish to force splitting into 4, and know the range of data, you can set "interval" to control the span between each axis splitLine. As about the sub-lenged, ECharts does not support sub-legend. But it does support multiple legends which can be defined as "legend: [{...}, {...}]". Each of the legend can be set with different positions and data items. You can try with it to see what can be done from there. Thanks *Ovilia* On Tue, Oct 5, 2021 at 11:24 PM Gentrit Gruda <genegr...@gmail.com> wrote: > Hello, > hope you are doing well and are safe. > I wanted to ask you about two things: > > 1. How can I set 4 Fixed Lines in yAxis? I don't want to set them with > min/max because if i set min:0 and max:100000 and I have a value with > 37 or > something it doesn't look as it should, is there a way to set a fixed > amount of 4 Lines in the yAxis but the yAxis Values to be calculated as > they are now? > 2. How can I add a sub-legend, for example I have a legend and have some > categories in the legend like 'developer' but i have a 'web-developer' i > have a 'mobile-app-developer' etc. How can I add some "+" in the legend > near 'developer' so when I click the "+" it expands and shows the > sub-legend and updates the chart with the sub-legend, or shows only the > sub-legend information in the Chart ? > > Would be great if you could respond asap because I'm in hurry to finish > this for my Sprint. I've searched and looked everywhere for a Week straight > now. > > I'm looking forward to hearing from you. > > Best regards, > Gentrit >