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

Support for MathJax and HTML entities in parcoords dimension labels #3206

Closed
cpsievert opened this issue Nov 1, 2018 · 1 comment
Closed
Assignees
Labels
feature something new
Milestone

Comments

@cpsievert
Copy link

cpsievert commented Nov 1, 2018

Is this a known limitation? I can get a more minimal (JS) example if need be

plot_ly(
    type = 'parcoords',
    dimensions = list(
        list(range = range(iris$Sepal.Width),
             label = TeX('Sepal Width \\alpha'), values = iris$Sepal.Width),
        list(range = range(iris$Sepal.Length),
             label = '<b>Sepal Length</b>', values = iris$Sepal.Length),
        list(range = range(iris$Petal.Width),
             label = 'Petal Width', values = iris$Petal.Width),
        list(range = range(iris$Petal.Length),
             label = 'Petal Length', values = iris$Petal.Length)
    )
) %>% 
    layout(title = TeX("\\text{Some mathjax: }\\alpha+\\beta x")) %>% 
    config(mathjax = "cdn")

screen shot 2018-11-01 at 5 22 16 pm

Requested in plotly/plotly.R#1298

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

No branches or pull requests

3 participants