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

Reverse Y axis #9

Closed
orwant opened this issue May 9, 2015 · 23 comments
Closed

Reverse Y axis #9

orwant opened this issue May 9, 2015 · 23 comments

Comments

@orwant
Copy link
Collaborator

orwant commented May 9, 2015

What would you like to see us add to this API?
I would like to show the reverse Y axis in the LineChart. Say from 1 to 100 
(top to bottom). 


What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?
Line Chart 

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by dimpeedesai on 2009-07-30 12:10:09

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

Yes, we need it pretty badly 

Original issue reported on code.google.com by info@herbsandcures.com on 2009-07-30 13:03:46

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

definitely man, I need it too 

Original issue reported on code.google.com by varun8211 on 2009-07-30 13:17:56

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

I really need this feature!  bar would start at, say, 100 (low) and go UP to 1 (high).
 Think of a chart show the 
progress of some one's rank over time (one day he is ranked #1, then "falls" to #5,
the #3, etc).

Original issue reported on code.google.com by nathan.garza on 2009-07-30 23:59:04

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

I need this for an astronomy application.  We plot objects' magnitudes on a reverse
scale.

Original issue reported on code.google.com by sayresc on 2009-09-22 23:30:22

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

You can't chart google search rank without this, unless "down" is better.  :(


Original issue reported on code.google.com by mark.puckett on 2009-12-09 19:57:00

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

A quick work around is to put in the data as negative, then use the numberFormats 
option to display negatives as positive.

IE:
numberFormats: ';###,###'

Original issue reported on code.google.com by micksam7 on 2010-02-04 11:41:56

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

Would be a great feature for any graphs dealing with Ranks (lower number is better)

Original issue reported on code.google.com by Martin.Caron09 on 2010-02-10 20:27:54

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

micksam7, could you please explain this example? I tried to format the y-axis values
in a line chart with the number format, but i didn't get it work.

Original issue reported on code.google.com by lars.schweisthal on 2010-03-17 08:49:03

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

micksam7, How should i prepare pattern to replace negative to positive on yaxis ?

numberFormats: '???'

Please help.. 

Original issue reported on code.google.com by zazunc@wp.pl on 2010-04-06 23:53:30

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

i need it too

Original issue reported on code.google.com by hsnybs on 2010-04-12 22:17:45

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

Most important than reverseAxis. I need this feature to make ranks.

Original issue reported on code.google.com by marcvila@hotmail.com on 2010-04-16 12:28:49

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

I'm trying the workaround posted by micksam7, but can't find how to set the 
numberFormat in the visualization API for the scatter plot using javascript. Do I set

it in the .draw() command?

Original issue reported on code.google.com by sesotek on 2010-04-27 00:28:57

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

I need it too. So, I would like to set Y axis labels.

Original issue reported on code.google.com by jeremie.synerweb on 2010-04-29 15:34:25

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

Just to be clear, I would like the y axis to end at 0 at the top and increase in
value as it goes down.

Original issue reported on code.google.com by robert.sindall on 2010-05-02 00:30:16

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

http://code.google.com/intl/de-DE/apis/visualization/documentation/reference.html#dateformatter

Original issue reported on code.google.com by eric_cartman8999@spam.la on 2010-05-27 14:53:49

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

I need that too, it is a very important issue. Thanks!

Original issue reported on code.google.com by carlos.molinet%atrapalo.com@gtempaccount.com on 2010-07-01 14:55:35

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

any idea when will it be available?

Original issue reported on code.google.com by varun8211 on 2010-07-13 12:37:05

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

FusionCharts3 doesn't support this function either. If google supports this function,
it's gonna be very strong difference from the FusionCharts.

Original issue reported on code.google.com by matsubokkuri on 2010-07-28 09:10:30

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

I found switch to reverse y-axis.
try following option.

vAxis: {direction:1}

Original issue reported on code.google.com by matsubokkuri on 2010-07-29 13:13:31

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

Good catch :)

This indeed works now, but it's an undocumented feature. The reason for it being undocumented
is that it's still unstable. In the next release specifying vAxis: {direction:1} will
no longer reverse the vertical axis, and you'll have to specify -1 instead of 1. We
hope it'll be stable enough by then to document it officially.

Until then, use at your own risk.

Original issue reported on code.google.com by jinji.viz on 2010-07-29 14:45:38

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015


This is now officially supported where using -1 reverse the axis from its original
direction.
http://code.google.com/apis/visualization/documentation/gallery/linechart.html#Configuration_Options

Original issue reported on code.google.com by metula on 2010-08-18 21:30:52

@orwant orwant closed this as completed May 9, 2015
@jsabra1
Copy link

jsabra1 commented May 31, 2019

Not exactly what i needed, the -1 doesn't reverse time for me, I need to reverse an axis representing time, so instead of 6 am to 7am i want it be 7am to 6 am..

@dhruv9499
Copy link

for me
vAxis: {direction:-1} is not working

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