-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Templates #2761
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
Templates #2761
Changes from 1 commit
b8950c5
355fb09
8ddcfd6
b5ccfbe
86e09bb
3dee25c
5cca8d3
b3da4e7
8525953
e306d1c
8e2a321
4346611
fb489aa
bc21cc8
8490804
c2bcfe3
890a324
aed44dc
6df61e0
ef4c3cc
b1c6f0a
818cac9
15931cf
8598bc9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,11 @@ module.exports = { | |
dflt: '-', | ||
role: 'info', | ||
editType: 'calc', | ||
// we forget when an axis has been autotyped, just writing the auto | ||
// value back to the input - so it doesn't make sense to template this. | ||
// TODO: should we prohibit this in `coerce` as well, or honor it if | ||
// someone enters it explicitly? | ||
_noTemplating: true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good call - |
||
description: [ | ||
'Sets the axis type.', | ||
'By default, plotly attempts to determined the axis type', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prevented
makeTemplate
from pulling outaxis.type
with this flag, as it seems more likely to cause problems than fix them, but I did NOT preventcoerce
from using it if someone makes a template of manually and includes it (to say "always make this axis categorical" for example). Seem reasonable?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very reasonable 👌