Skip to content
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

layout.metatext #3427

Closed
nicolaskruchten opened this issue Jan 11, 2019 · 2 comments · Fixed by #3439
Closed

layout.metatext #3427

nicolaskruchten opened this issue Jan 11, 2019 · 2 comments · Fixed by #3439
Assignees
Milestone

Comments

@nicolaskruchten
Copy link
Member

For Chart Studio we would need:

  • A new data-array key in layout called metatext, intended to contain strings
  • The ability to use %{metatext[<x>]} in string keys like layout.title, layout.*axis.title, layout.annotations[*].text (and possibly one or two other places TBD)
@etpinard etpinard added this to the 1.44.0 milestone Jan 11, 2019
@etpinard etpinard self-assigned this Jan 11, 2019
@etpinard
Copy link
Contributor

Just to confirm, we want something like:

Plotly.newPlot(gd, [{
  y: [1,2,1]
}], {
   metatext: ['a', 'b'],
   title: 'my title %{metatext[0]} - %{metatext[1]}'
})

yielding:

image

?

@nicolaskruchten
Copy link
Member Author

yes indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants