You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by Ovilia <ov...@gmail.com> on 2023/03/03 06:46:33 UTC

Re: Line chart xaxis label problems

Hi, EChart's doesn't provide such ability to control the interval of time
series. But I'm working on a PR that provides a new
option, formatterMinUnit in https://github.com/apache/echarts/pull/17311 .
In your case, you may set this to be 'month' so that there should be no
"22" in the labels.
Let's see if this works when I complete the PR.

Thanks

*Ovilia*


On Tue, Feb 28, 2023 at 6:57 PM Tietjen Data <ti...@newtrisko.de>
wrote:

> Hi,
>
> I am trying to build a line chart with a dataset containing data for
> nearly every workday.
>
> The dataset starts with data for the current month from the previous
> year and ends with the current month for the current year.
>
> With xAxis.showMinLabel : true and xAxis.showMaxLabel : true I could
> tackle display start and end.
>
> But between I need to display every third month.
>
> Looking at the screenshot, the desired labels should be:
>
> Feb, May, Aug, Nov and Feb
>
> Can give me anyone an advise or idea to accomplish this.
>
>
> Thanks a lot.
>
> Best regards
>
> Marco.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
> For additional commands, e-mail: dev-help@echarts.apache.org