-
Notifications
You must be signed in to change notification settings - Fork 21
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
Setting unsupported hierarchical value (rangebreaks.enabled) #79
Comments
Indeed you can. You can either use xaxis {
title = "x axis name"
set(
"rangebreaks",
listOf(
Meta {
"bounds" put listOf(2.0, 3.0)
},
Meta {
"bounds" put listOf(3.5, 4.5)
}
)
)
} In case of rangebreaks I can't produce the result. The generated json seems to be fine, but I do not see changes in the picture. Complete plotly json example would help. |
I've also found a minor bug in multiple node treatment (#80), which leads to additional field building and no array wrappings for single-element arrays. It will be fixed in the next release. |
Thank you! This worked to skip weekends:
|
Nice. Feel free to open an issue for this feature (with Plotly json space you want to achieve) or even contribute the solution. |
With dataforge 0.4 > 0.5 this part doesn't work anymore.
Problem being "bounds" put listOf..." Thank you in advance! |
Yes, there was a breaking change. The typing is now more strict. You should use I will see to adding a local extension to Plotly so we can add lists of Any as before to avoid breaking compatibility. The problem is accepting |
Appreciate quick reply. The example given should work just fine! |
Hi!
Trying to disable range breaks for dates based x-axis to avoid display of weekends.
Supposedly setting rangebreaks.enabled should do (https://plotly.com/javascript/reference/#layout-xaxis-rangebreaks)
How can I do that?
PS. I'm using set(...) for other unsupported properties, but not sure if it can be used for setting hierarchical values like this one.
The text was updated successfully, but these errors were encountered: