Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
locking/setting valueRange programmatically?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
drose  
View profile  
 More options Jul 17 2012, 8:51 am
From: drose <tommy...@gmail.com>
Date: Tue, 17 Jul 2012 05:51:27 -0700 (PDT)
Local: Tues, Jul 17 2012 8:51 am
Subject: locking/setting valueRange programmatically?

Hi:

 Am I correct in thinking that valueRange can only be set at the time of
graph instantiation?  I would like to be able to change it dynamically
based on user input (beyond the capability provided by y-axis zooming
which, for example, does not allow zooming out beyond the initial state).
 I tried this using valueRange on an existing graph, and it didn't appear
to have any effect.

 I also wondered whether there is a way of suppressing the automatic
rescaling that occurs during panning. It is a nice feature for many
applications but in others I would like to be able to keep the scaling
constant.

thanks,
Dave.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Vanderkam  
View profile  
 More options Jul 18 2012, 10:00 am
From: Dan Vanderkam <dan...@gmail.com>
Date: Wed, 18 Jul 2012 09:00:06 -0500
Local: Wed, Jul 18 2012 10:00 am
Subject: Re: locking/setting valueRange programmatically?

On Tue, Jul 17, 2012 at 7:51 AM, drose <tommy...@gmail.com> wrote:
> Hi:

>  Am I correct in thinking that valueRange can only be set at the time of
> graph instantiation?  I would like to be able to change it dynamically
> based on user input (beyond the capability provided by y-axis zooming
> which, for example, does not allow zooming out beyond the initial state).
>  I tried this using valueRange on an existing graph, and it didn't appear
> to have any effect.

Calling updateOptions with valueRange should work. See
http://dygraphs.com/tests/zoom.html

>  I also wondered whether there is a way of suppressing the automatic
> rescaling that occurs during panning. It is a nice feature for many
> applications but in others I would like to be able to keep the scaling
> constant.

Setting a valueRange (either in the constructor or later) will disable the
automatic rescaling.

  - dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »