Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChartDataPoint xAxisLabels are scaled down too far with a large number of data points #3

Closed
jeffgrann opened this issue Jan 30, 2021 · 2 comments

Comments

@jeffgrann
Copy link

SwiftUICharts-XLabels

Same code as this issue except more data points added.

I'd like to be able to set the first and last x-axis labels and keep them the same size as the y-axis labels.

@willdale
Copy link
Owner

willdale commented Jan 30, 2021

This is now fixed in v1.0.6.

Another option would be to use the xAxisLabels. This is independent of the datapoints.


ChartStyle(...
           xAxisLabelsFrom: .dataPoint)

ChartData(...,
          xAxisLabels  : ["Jun 18", "Sep 20"],
          ...)

Thanks

@jeffgrann
Copy link
Author

Thanks again. 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants