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

How to draw a line only for the 5th value of dataset along x axis? #409

Closed
LekhaPai opened this issue Sep 23, 2015 · 2 comments
Closed

How to draw a line only for the 5th value of dataset along x axis? #409

LekhaPai opened this issue Sep 23, 2015 · 2 comments

Comments

@LekhaPai
Copy link

x axis i have defined for time intervals.I need to specify a interval line only when 5th values from y axis is drawn.I have tried with setLabelstoSkip(),.With this method it draws line for the first value of y and then keeps on plotting the interval lines.How to avoid it?

@liuxuan30
Copy link
Member

I am not quite clear about what is interval line here? Grid line or else? setLabelstoSkip has some description:
Sets the number of labels that should be skipped on the axis before the next label is drawn. This will disable the feature that automatically calculates an adequate space between the axis labels and set the number of labels to be skipped to the fixed number provided by this method. Call resetLabelsToSkip(...) to re-enable automatic calculation.
So seems resetLabelsToSkip is not what you want. Maybe just change drawLabels loop in ChartXAxisRenderer started at 5 is enough? Though you should think about zooming and scrolling as well.

@danielgindi
Copy link
Collaborator

No response for so long, I guess he figures this out...

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

3 participants