Comments (5)
Shapes seem to be broken:
shapes in Props/Layout.fs
shape in Props/Shapes.fs
Example:
F#:
layout.shapes [
shapes.shape [
shape.type'.line; shape.x0 1; shape.x1 4; shape.y0 7; shape.y1 12]
current JS:
shapes: { shape: { type: "line", x0: 1, x1: 4, y0: 7, y1: 12 }}
desired JS:
shapes: [{ type: "line", x0: 1, x1: 4, y0: 7, y1: 12 }]
Fix:
Props/Layout.fs:
static member inline shapes (shapes: obj list) =
Interop.mkLayoutAttr "shapes" (shapes |> ResizeArray)
Props/Shapes.fs:
static member inline shape (properties: #IShapeProperty list) =
(createObj !!properties)
from feliz.plotly.
Bump
from feliz.plotly.
It is not working by what I saw creating this sample project: https://github.com/64J0/Feliz.Plotly-testing-vertical-line/blob/master/src/Components.fs
from feliz.plotly.
I think that I have spotted the problem. In this line https://github.com/Shmew/Feliz.Plotly/blob/master/src/Feliz.Plotly/Bindings.fs#L26 by what I understood, all the values within the data
object but this is wrong for the shapes
. They must live inside of their own objects like shown in the example from the starting of this issue.
from feliz.plotly.
@MichaelMay81 this project seems abandoned unfortunately
from feliz.plotly.
Related Issues (20)
- Generated code HOT 15
- Dealing with multiple typed inputs HOT 2
- Cleanup Bindings that are used in events HOT 1
- Save plot to disk HOT 7
- Feliz.Plotly missing files HOT 3
- Question. Sorry about it HOT 3
- Getting error on build after adding Feliz.Plotly package HOT 3
- Array evaluation doesn't work HOT 1
- config.toImageButtonOptions has incorrect type signature
- Show how to use rangebreaks in documentation. HOT 2
- Did traces got renamed or moved? HOT 1
- Using the plotly.js binding without React? HOT 4
- open Feliz.Plotly overwrites built-in "box" function HOT 3
- Add support for DateTimeOffset HOT 7
- Animation example
- seq<seq<'T option>> in Histogram2d,Heatmap,.. for x,y and z HOT 1
- Use consistent camelCase namings HOT 3
- Packaged nuget has no dependencies HOT 2
- Need to un-nest many properties HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feliz.plotly.