-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support set step value for Horizontal and Vertical Axis (x/y axis) #30
Comments
Hi, thanks for idea, I think it is relatively easy task so I will try to implement it in this week. |
@lecho thanks, I'm looking forward for it |
I added three static methods in Axis class for axis generation: /**
* Generates Axis with values from start to stop inclusive.
*/
public static Axis generateAxisFromRange(float start, float stop, float step);
/**
* Generates Axis with values from given list.
*/
public static Axis generateAxisFromCollection(List<Float> axisValues);
/**
* Generates Axis with values and labels from given lists, both lists must have the same size.
*/
public static Axis generateAxisFromCollection(List<Float> axisValues, List<String> axisValuesLabels); |
Hi, tested, they worked well. Thanks you alot @lecho |
Hi Lecho, Let me know how to use the above mentioned static methods. My Requirement: I want show the X axis values dynamically. Example Code for X axis Value Generation: public class graph1 {
} Output: |
Hi, after deeply searching in this lib, I see you do not support for setting these values yet.
For example, I have a bunch of data of temperature of few months, and I want to draw a chart with step in Y axis is 5 degree, and step in X axis is each 7 days, what I want is the gridline always point to that step value.
I see some others chart lib have this feature, but I love this library (the style, animation, setup). Could you please add this in next release ?
Thanks.
The text was updated successfully, but these errors were encountered: