-
Notifications
You must be signed in to change notification settings - Fork 626
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
plotly parcoords (parallel coordinates) cannot plot a single line #2385
Comments
The issue is that with only row the single As a workaround you could wrap in
|
I just checked and the same issue arises with library(plotly)
dd <- data.frame(
from = "A",
to = "B"
)
plot_ly(dd) %>%
add_trace(
type = "parcats",
dimensions = list(
list(values = ~ from),
list(values = ~ to)
)
) And can be fixed by wrapping in plot_ly(dd) %>%
add_trace(
type = "parcats",
dimensions = list(
list(values = ~ I(from)),
list(values = ~ I(to))
)
) Created on 2024-08-31 with reprex v2.1.1 |
And also for library(plotly)
plot_ly(
type = "splom",
dimensions = list(
list(values = 1, label = "A"),
list(values = 2, label = "B")
)
) plot_ly(
type = "splom",
dimensions = list(
list(values = I(1), label = "A"),
list(values = I(2), label = "B")
)
) Created on 2024-08-31 with reprex v2.1.1 |
…e data_array propery of the "values" attribute. Closes plotly#2385. * Add tests to check that "values" property has class "AsIs" for "parcoords", "parcats" and "splom" traces. * Add NEWS entry
The following generates no plot, no warnings and no errors:
The text was updated successfully, but these errors were encountered: