Skip to content

Use trace gd.data index to determine dflt trace name #1073

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

Merged
merged 2 commits into from
Oct 26, 2016

Conversation

etpinard
Copy link
Contributor

fixes #1068

- ... instead of gd._fullData index
- so that e.g. traces following one-to-many transform are listed
  as trace 1, ...
@etpinard etpinard added bug something broken status: reviewable labels Oct 24, 2016
@etpinard etpinard added this to the v1.19.0 milestone Oct 24, 2016
return fullTrace.name;
});

expect(names).toEqual([
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this ⏬ , this used to give

[
  'trace 0 - increasing',
  'trace 0 - decreasing',
  'trace 2',
  'trace 3 - increasing',
  'trace 3 - decreasing',
  'trace 5'
]

@@ -722,9 +722,9 @@ plots.supplyFrameDefaults = function(frameIn) {
return frameOut;
};

plots.supplyTraceDefaults = function(traceIn, traceIndex, layout) {
plots.supplyTraceDefaults = function(traceIn, traceOutIndex, layout, traceInIndex) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the odd call signature is to not break to toolpanel code:

image

@bpostlethwaite
Copy link
Member

looks 💃 to me!

@etpinard etpinard merged commit 4bda0bb into master Oct 26, 2016
@etpinard etpinard deleted the transform-trace-dflt-name branch October 26, 2016 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Financial Chart types - name error when adding traces
2 participants