-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Introduction of a right y axis #113
Comments
This is difficult. We have two cases:
Of course case number 1 is easier to implement. Also, we will need to handle grid drawing in such way that right axis is properly scaled using left axis' grid lines. Please also remember that hovering is per category not per series' point. |
Thank you for taking a look. When I suggested this feature, I was thinking more of scenario 1) where both series are measured against the same x axis values - they only have the potential to differ in their orders of magnitude. My specific use case is graphing daily word counts and a running count of words written on the same graph. See here for an example : http://bit.ly/WhCBqB . |
This is a useful idea, but it'll need some serious work. Delaying until a v0.6 release. |
Came here looking for this 👍 Thanks for all the great work so far... |
interested in this as well. thanks |
Exactly what I was looking for, guess highcharts will have to do for now. |
👍 What can the community do to help out with this? I like morrisJS but want the added features. 😄 |
Things that could be done to help: Non-developers: draw up some comprehensive mocks and discuss them with the community. This gives us a spec that should be relatively easy for a developer-contributor from. Developers: Pull requests! I can't promise any code myself, but I will review any new pull requests and work constructively with you to get them merged. Strong contributors will be granted write access to the repo. Thanks! Olly
|
Any update on this? |
Yeah I am having the same problem and considering of switching to D3 for everything if we cannot get this working soon although I love morrisjs! |
Also would love to see this option with morris.js! Would be a very useful tool! |
Will this happen ? |
+1 for this function req. |
+1 👍 |
+1 |
1 similar comment
+1 |
I really needed this for my project, so I hacked it in (with a chainsaw and baseball bat) ... but the code it really ugly, only works for bar chars and It probably breaks other functionality. If I cleaned it up, got it working for line charts, and tested it well. What's the chances that it would get merged? This is what it looks like currently: |
Pretty big, this is a feature a lot of people want. |
+1 |
nice one! |
Currently I added in a new Does anyone else have a better idea? |
And what about other functions like goals, would you need to be able add them using the right axis? I think I will just keep it separate from the other functions for now... sounds like it might double the code-base if I make it too flexible. |
I would call it rightYkeys, but it sounds like a good way to implement it.
|
I'm just thinking of a better way. You should probably make an array like
|
+1 |
3 similar comments
+1 |
+1 |
+1 |
+10 |
+1 |
Awesome, this has been something I've needed! On Tue, Feb 16, 2016, 6:51 AM Ege notifications@github.com wrote:
|
I really miss the function too... |
+1 |
1 similar comment
+1 |
+1000 |
+1 |
Someone mentioned +1 yet?! |
+1 |
+10K |
+1 |
6 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
I really think this feature will help. |
+1 |
I also needed this feature so that I finally made a fork of Morris.js. For those who might be interested, you can get it here: https://pierresh.github.io/morris.js/ Just need to set the option nbYkeys2 with a number corresponding to the number of series to be displayed on the right axis (from the end of ykeys array, default is 0). |
+1 |
1 similar comment
+1 |
Any news about this? |
+1 |
1 similar comment
+1 |
Just use my fork, that is built-in :). |
nice try, but it must work like canvasjs with data...axisYIndex |
Such a way is very complicated and would make Morris.js very verbose, which is not its philosophy. |
any final idea to use rykeys?rightyaxis? how to set 2nd y axis?can we do it? |
It would be great if Morris was capable of plotting multiple lines, some on the traditional left y axis and others on the right. Data spanning varying orders of magnitude can be viewed on the same graph.
The text was updated successfully, but these errors were encountered: