Skip to content

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

Closed
@cpsievert

Description

@cpsievert

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions