-
Notifications
You must be signed in to change notification settings - Fork 86
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
No way to add guidelines (plotly.js has them) #444
Comments
Hey @pkese, what you referenced is the python version of plotly, which similarly to this lib offer a plethora of high-level abstractions on top of plotly.js. While there seems to be no direct API we could bin this to (at least However, the python functions seems to me like it is simply setting the respective reference ( open Plotly.NET
open Plotly.NET.LayoutObjects
Chart.Point([for i in 0..10 -> i, i])
|> Chart.withShapes [
Shape.init(
X0 = 1,
X1 = 2,
Y0 = 0,
Y1 = 1,
Yref = "y domain"
)
Shape.init(
X0 = 0,
X1 = 1,
Y0 = 0,
Y1 = 0,
Xref = "x domain"
)
] What we should do though is add a type safe abstration for |
I think we could offer such an abstraction though. Keeping consistent e.g. with special axes type creation, this would mean there would be a |
Sounds great. Note: I'm just learning plotly, so my comments may not be most relevant. I do have a lot of experience with Highcharts and they have a nice way to put extra lines directly on axis object. Maybe that's also something worth considering. https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/xaxis/plotlines-color/ |
In js version of plotly, it is possible to add horizontal and vertical lines.
I can't find that functionality in Plotly.Net.
See
add_hline
andadd_vline
in https://plotly.com/python/horizontal-vertical-shapes/The text was updated successfully, but these errors were encountered: