AAChartKit-Swift icon indicating copy to clipboard operation
AAChartKit-Swift copied to clipboard

customize xAxis (padding, labels)

Open iOSdev-klimov opened this issue 2 years ago β€’ 5 comments

Hey, guys, I need your assist a bit.

  1. I would like to represent visible number of elements on xAxis 7, when data is loaded. How can I adjust xAxis elements distance in that way, to show 7 days of week. Also I added AAScrollablePlotArea with minWIdth(1800).

  2. Second problem is, on xAxis, I wanna make bold xAxis label for today, other date labels remain as regular.

  3. Third one is related to second, in picture below my xAxis label is data is represented as one line. I wanna make 2 lines, on first line day of month, second line weekday of month.

Screenshot 2023-08-07 at 09 50 14

Expected result should be(Question #3)

Screenshot 2023-08-07 at 10 08 37

@AAChartModel guys I would be glad if you refer to examples

iOSdev-klimov avatar Aug 07 '23 04:08 iOSdev-klimov

Hey, guys, I need your assist a bit. I would like to represent visible number of elements on xAxis 7, when data is loaded. How can I adjust xAxis elements distance in that way, to show 7 days of week. Also I added AAScrollablePlotArea with minWIdth(1800)

  1. Second problem is, on xAxis, I wanna make bold xAxis label for today, other date labels remain as regular.
  2. Third one is related to second, in picture below my xAxis label is data is represented as one line. I wanna make 2 lines, on first line day of month, second line weekday of month.

Screenshot 2023-08-07 at 09 50 14 Expected result should be(Question #3) Screenshot 2023-08-07 at 10 08 37 @AAChartModel guys I would be glad if you refer to examples

@AAChartModel, guys any ideas?

iOSdev-klimov avatar Aug 15 '23 10:08 iOSdev-klimov

Second problem is, on xAxis, I wanna make bold xAxis label for today, other date labels remain as regular.

Refer to:

  • https://github.com/AAChartModel/AAChartKit/issues/1330

Online API:

  • https://api.highcharts.com/highcharts/xAxis.labels.formatter
  • https://api.highcharts.com/highcharts/yAxis.labels.formatter

AAChartModel avatar Aug 15 '23 11:08 AAChartModel

Third one is related to second, in picture below my xAxis label is data is represented as one line. I wanna make 2 lines, on first line day of month, second line weekday of month.

Refer to:

  • https://github.com/AAChartModel/AAChartKit-Swift/issues/331

AAChartModel avatar Aug 15 '23 11:08 AAChartModel

@AAChartModel, hey, thank you for sharing references, appreciate. Could you also help me to handle 1st problem that I indicated above. Quick summary: Generally on xAxis I have to show number of months(from 1 to 30/31), and when first data is loaded, I need show 7 elements at xAxis, each xAxis element label is divided by 7 lineChart see picture above, there's only 6 elements represented, I need 7) and it should start all the time from monday of that week. (For instance, if today is sunday, today's label should be last, and scrolled) How can I adjust xAxis elements distance in that way, to show 7 days of week. Also I added AAScrollablePlotArea with minWIdth(1800) just randomly. Please, any ideas, or links. 2. Second issue realated to first, when I scroll horzontally, line chart, some lines are not drawn, shows as dots. How to fix it also? This is my implementation(See last image). Screenshot 2023-08-20 at 17 50 11 Screenshot 2023-08-20 at 17 50 55 Screenshot 2023-08-20 at 17 51 08 Please any ideas, or links, I would be thankful @AAChartModel Thanks a lot Uploading Screenshot 2023-08-20 at 18.50.26.png…

iOSdev-klimov avatar Aug 20 '23 11:08 iOSdev-klimov

Second issue realated to first, when I scroll horzontally, line chart, some lines are not drawn, shows as dots. How to fix it also?

As I mentioned earlier, this is a bug in Highcharts, and the official team has yet to address this issue.

  • #443

AAChartModel avatar Aug 21 '23 01:08 AAChartModel