Skip to content

Update binding with more chart types #90

Open

Description

@colombod

Some plotly.js types are missing. E.g. pointcloud and sunburts.

Activity

  1. cartermp commented on Nov 7, 2019

    @cartermp
    Collaborator

    Boxplots are a big one too.

  2. zyzhu commented on Nov 7, 2019

    @zyzhu
    Contributor

    I tried to give it a shot the other day and was overwhelmed by the amount of work.

    The current binding seems to work by running Graph.fsx. It downloads plot-schema.json (the latest link is https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plot-schema.json) and generate types to correspond to plotly schema.

    The javascript schema has grown a lot since XPlot was updated years ago. There are also lots of overlapping type definitions. They are fine in dynamic Javascript world. But we have to accommodate the union of all type members in fsharp.

  3. zyzhu commented on Nov 7, 2019

    @zyzhu
    Contributor

    The other impression is Graph.fs looks way too long. It would be good break it down into pieces.

  4. colombod commented on Nov 7, 2019

    @colombod
    CollaboratorAuthor

    The other impression is Graph.fs looks way too long. It would be good break it down into pieces.

    How would you like to go about it, if you show me the way I would be more than happy to share the workload and get all new features

  5. zyzhu commented on Nov 7, 2019

    @zyzhu
    Contributor

    There is another repo FSharp.Plotly that was inspired by XPlot. It binds to some Plotly charts too. You may take a look at their breakdown.
    https://github.com/muehlhaus/FSharp.Plotly/tree/master/src/FSharp.Plotly

  6. cartermp commented on Nov 7, 2019

    @cartermp
    Collaborator

    Breaking up Graph.fs into separate files for each specific graph type seems quite tractable. I imagine that'll help with contributions, too.

  7. cartermp commented on Nov 8, 2019

    @cartermp
    Collaborator

    Related: #49

  8. Shmew commented on Nov 9, 2019

    @Shmew

    I have a fable library I'm working on that is pretty serviceable at the moment that may be of use: Feliz.Plotly

  9. cartermp commented on Nov 10, 2019

    @cartermp
    Collaborator

    link #115

  10. cartermp commented on Nov 11, 2019

    @cartermp
    Collaborator

    @Shmew Interesting! How portable (i.e., in non-Fable environments) do you think the generated types are? Would love to incorporate your generator for XPlot here.

  11. Shmew commented on Nov 11, 2019

    @Shmew

    Pretty much everything outside of Plotly.plot is just an object, would probably be pretty easy to implement. From what I can tell it looks like this is just creating an inline html page.

    Is there a reason to not use Fable at that point? It's pretty easy to build sites with no backend like the docs for the library are. Which lets the application be more performant, and have the full plotly.js api available for use.

  12. ErikSchierboom commented on Nov 12, 2019

    @ErikSchierboom

    I would love to see more bindings, especially the organisation chart.

  13. cartermp commented on Nov 13, 2019

    @cartermp
    Collaborator

    @Shmew I'm considering incorporating Fable in XPlot, since at the end of the day it's just producing JS and Fable is good for that.

  14. Shmew commented on Nov 13, 2019

    @Shmew

    @cartermp Would let you also be able to support additional visualization libraries fairly easy too, and stay up-to-date with those already supported. I can try to help if you do make the jump, and the gitter is very active and helpful as well.

  15. theolivenbaum commented on Nov 13, 2019

    @theolivenbaum

    @cartermp just one comment on this thread, but the work by @Shmew is absolutely amazing - worth checking to replace the current XPlot bindings with it. Just did the same for using Plotly on Bridge.Net - took less than a day to get it working based on his generator code: Plotly.Bridge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions