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

Sliders #120

Closed
Tracked by #44
kMutagene opened this issue Aug 9, 2021 · 3 comments
Closed
Tracked by #44

Sliders #120

kMutagene opened this issue Aug 9, 2021 · 3 comments

Comments

@kMutagene
Copy link
Member

No description provided.

@amakhno
Copy link
Contributor

amakhno commented Oct 28, 2021

@kMutagene

Hi!

Can I try to implement it at the weekend? We need this functionality in the project, and I want to know if it's being implemented by someone right now

@kMutagene
Copy link
Member Author

kMutagene commented Oct 29, 2021

Hi @amakhno ,

To my knowledge, this is not currently worked on, so feel free to have a go!

All properties of the Slider object can be found here alongside the correct property names

The pattern we use for layout objects can be for example seen here: https://github.com/plotly/Plotly.NET/blob/dev/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs

as you see, it is basically just the task of copy pasting the props and names and assigning correct .NET types. A few hints on that (it may be possible that you do not need this though):

  • nested objects need their own abstractions, for example the font (check if they are implemented already, Font does exist for example.)
  • data array should be seq<#IConvertible>
  • number should be an int (for example for pixels) or float (for example for fractions) depending on context of the reference docs
  • things that can be a single value or an array of values on the JS side should use the single or multi pattern you can see for example here

And a function for adding such an object to the layout here for F#, and here for the C# extension.

If you have additional questions feel free to ask here or in the fslab discord channel!

amakhno pushed a commit to amakhno/Plotly.NET that referenced this issue Nov 13, 2021
amakhno pushed a commit to amakhno/Plotly.NET that referenced this issue Nov 14, 2021
amakhno pushed a commit to amakhno/Plotly.NET that referenced this issue Nov 15, 2021
@kMutagene
Copy link
Member Author

closed via #232

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

No branches or pull requests

2 participants