how to show the merged X axes?
Posted: Mon Nov 06, 2023 4:11 pm
I hope to use the dataset with:
then the chart will show like:
the element 1-4 with the same year 2021,then i want to show once below the wid,
the element 5-8 with the same year 2022, then the year ‘2022 ’ show below the three wid value
...
when i has the same value,then show with sub axes below the origin x label
how need i to to?
Code: Select all
[
{year: 2021, wid: 'A',total: 10},
{year: 2021, wid: 'B',total: 20},
{year: 2021, wid: 'C',total: 20},
{year: 2021, wid: 'D',total: 20},
{year: 2022, wid: 'E',total: 10},
{year: 2022, wid: 'F',total: 10},
{year: 2022, wid: 'A',total: 20},
{year: 2023, wid: 'S',total: 10},
{year: 2023, wid: 'T',total: 20},
{year: 2023, wid: 'H',total: 20},
{year: 2023, wid: 'N',total: 10}
]
then the chart will show like:
the element 1-4 with the same year 2021,then i want to show once below the wid,
the element 5-8 with the same year 2022, then the year ‘2022 ’ show below the three wid value
...
when i has the same value,then show with sub axes below the origin x label
how need i to to?