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

Is is possible to put a label to a graph axis? #289

Open
pamafe1976 opened this issue Mar 12, 2024 · 2 comments
Open

Is is possible to put a label to a graph axis? #289

pamafe1976 opened this issue Mar 12, 2024 · 2 comments

Comments

@pamafe1976
Copy link

Hi,
Sorry if this a stupid question, but after looking around in the API I could not find a way of labeling an axis. Im sure this has to be possible since its a very basic feature for a chart.

Regards

@pamafe1976 pamafe1976 changed the title Is is possible to put a lable to a graph axis? Is is possible to put a label to a graph axis? Mar 12, 2024
@entronad
Copy link
Owner

If you mean a single label like the title of the axis, There is no such property for axis. You can put a TagAnnotation near your axis to play the role of such label. https://pub.dev/documentation/graphic/latest/graphic/TagAnnotation-class.html

The reason why no such property is that: for high-demand situations(in fact it means most situations) indicating how to layout a label properly is too complex no better than define a TagAnnotation.

@pamafe1976
Copy link
Author

Ok. I will try with TagAnnotation.

By the way, the library is very nice. I hope it keeps evolving. Great job!

Regards

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