-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2364 from TomDemulierChevret/rangeslider-allow-zo…
…om-on-oppaxis Rangeslider allow zoom on oppaxis
- Loading branch information
Showing
14 changed files
with
1,118 additions
and
620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright 2012-2018, Plotly, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = { | ||
// not really a 'subplot' attribute container, | ||
// but this is the flag we use to denote attributes that | ||
// support yaxis, yaxis2, yaxis3, ... counters | ||
_isSubplotObj: true, | ||
|
||
rangemode: { | ||
valType: 'enumerated', | ||
values: ['auto', 'fixed', 'match'], | ||
dflt: 'match', | ||
role: 'style', | ||
editType: 'calc', | ||
description: [ | ||
'Determines whether or not the range of this axis in', | ||
'the rangeslider use the same value than in the main plot', | ||
'when zooming in/out.', | ||
'If *auto*, the autorange will be used.', | ||
'If *fixed*, the `range` is used.', | ||
'If *match*, the current range of the corresponding y-axis on the main subplot is used.' | ||
].join(' ') | ||
}, | ||
range: { | ||
valType: 'info_array', | ||
role: 'style', | ||
items: [ | ||
{valType: 'any', editType: 'plot'}, | ||
{valType: 'any', editType: 'plot'} | ||
], | ||
editType: 'plot', | ||
description: [ | ||
'Sets the range of this axis for the rangeslider.' | ||
].join(' ') | ||
}, | ||
editType: 'calc' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.