AnyChart / AnyChart-Android

AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
2.3k stars 368 forks source link

How can i get the count that how many row x axis have currently? #135

Open M1178475702 opened 4 years ago

M1178475702 commented 4 years ago

I find the method like image or image but they all return void! well, how can i get the results they return? Any help will be appreciate!

M1178475702 commented 4 years ago

And, can i use format function in android? i just find the method that use the text formater.

Shestac92 commented 4 years ago

@M1178475702 The Android library includes all methods and functions of the original library to provide a legacy, unfortunately, not all of them are implemented. Such methods will be implemented in the future updates.

Yes, you can text formatters! For example, like this:

series.tooltip().format("x: {%x}\\nPredicted High: {%high}\\nPredicted Low: {%low}\\nTime period: {%period} mins\\nTemp: {%temp}°");

You can learn much more about text formatters in the article.