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 display Negative X-Axis on LineChart #797

Closed
Monika-Tapadiya opened this issue Mar 4, 2016 · 5 comments
Closed

How to display Negative X-Axis on LineChart #797

Monika-Tapadiya opened this issue Mar 4, 2016 · 5 comments

Comments

@Monika-Tapadiya
Copy link

Hello,

I am able to show positive X, Y and negative Y axis on LineChart but I am unable to find any property of ChartXAxis to show negative values on negative X Axis.I want to show all Quadrants on graph.Please help me for this.

Thanks

@liuxuan30
Copy link
Member

currently, x axis is index based, so it starts from 0. a negative value is just a string for x axis.

@liuxuan30
Copy link
Member

but seems support four Quadrants smells like a feature? adding tags

@Monika-Tapadiya
Copy link
Author

Ok thanks for the reply :)

@kkpan11
Copy link

kkpan11 commented Sep 7, 2017

Hi, if I want to modify that to support the negative X-Axis on the chart, just let it can be scrolled back to negative value. How can I achieve that, or which part of the classes I can find the information? Any ideas would be appreciated.

Thanks a lot.

@liuxuan30
Copy link
Member

this is an old topic. You should be able to have a netagive X-Axis, as in 3.0, the x values and labels can be different, using the valueFormatter. e.g. x value: [0,1,2,3,4], but you can format to [-4,-3,-2,-1,0]

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

No branches or pull requests

3 participants