Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Line chart with 2 y-axis scales   Message List  
Reply | Forward Message #50219 of 52113 |
Re: Line chart with 2 y-axis scales

Hi Tripp,
I noticed this change was just recently checked in
[http://yuilibrary.com/projects/yui2/ticket/2002172]
I'll grab the new preview 2.8, but would it be possible to give a short example
about how to do this? For instance, I'd like to put a line graph in one range
(0-100) and a bar graph in another (8000-10000) on the same chart, do I just set
two separate SeriesDefs? Thanks much, matt


--- In ydn-javascript@yahoogroups.com, "tripp.bridges" <trippb@...> wrote:
>
>
> Hi Jacob,
>
> Unfortunately, there is not an option for two y-axes in the YUI Charts
> at this point. Currently, the best option for your scenario is to use
> 2 charts.
>
> Thanks,
> Tripp
>
> --- In ydn-javascript@yahoogroups.com, "jacob.fogg" <jacob.fogg@>
> wrote:
> >
> > I am blown away by the ease of use with basic DataTable and Chart
> > functionality! I was able to implement both using a complex set of
> > dynamic data in a matter of 20 minutes!
> >
> > Ok, so I am wondering if there is a way to have 2 y-axis scales. I am
> > plotting 2 sets of data against a set of dates. One of the datasets
> > is in the range of tens-of-thousand while the other set is in the
> > range of hundreds. I am trying to find a useful method of plotting
> > the two. Ideally, on the left I'd like to have the scale for the
> > ten-thousands and on the right the scale for the hundreds. Here is a
> > sample dataset:
> >
> > date,pageviews,sales
> > 6-1-2008,12484,353
> > 6-2-2008,18242,124
> > 6-3-2008,10858,76
> > 6-4-2008,13485,186
> >
> > Currently I have this nice line plotted for the pageviews, but the
> > sales looks like it's flatlined at 0...
> >
> > Any thoughts or suggestions on the best way to plot data like this
> > would be greatly appreciated!
> >
> > Jacob Fogg
> >
>





Fri Jul 3, 2009 10:00 pm

matt_3251091
Offline Offline
Send Email Send Email

Forward
Message #50219 of 52113 |
Expand Messages Author Sort by Date

I am blown away by the ease of use with basic DataTable and Chart functionality! I was able to implement both using a complex set of dynamic data in a matter...
jacob.fogg
Offline Send Email
Jun 4, 2008
5:54 pm

Hi Jacob, Unfortunately, there is not an option for two y-axes in the YUI Charts at this point. Currently, the best option for your scenario is to use 2...
tripp.bridges
Offline Send Email
Jun 5, 2008
5:13 pm

Hi Tripp, I noticed this change was just recently checked in [http://yuilibrary.com/projects/yui2/ticket/2002172] I'll grab the new preview 2.8, but would it...
matt_3251091
Offline Send Email
Jul 3, 2009
10:01 pm

Yes, there is not documentation yet. Here are the new properties you will need to use. series definition has 1 new property axis - defines which axis the...
Dwight Bridges
tripp.bridges
Offline Send Email
Jul 4, 2009
4:45 pm

Hey Tripp, this is great, and thanks for putting up the example on your site, that was super helpful. One question and one comment at the moment: wondering if...
matt_3251091
Offline Send Email
Jul 7, 2009
3:19 am

The series layering will depend on their ordering in the series definition. Just place the series that you want on top last in your series definition array. ...
Dwight Bridges
tripp.bridges
Offline Send Email
Jul 7, 2009
3:50 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help