Skip to content

Trace Diff log to plotly.js #42

Closed
@kMutagene

Description

@kMutagene

Here is the current diff (via https://plotly.com/javascript/reference/) for trace types that are supported by this library (on a high abstraction level, theoretically we already support everything via DynObj). in the brackets ill add the even higher level functions that build on the trace type. Checkbox is checked if we support at least some abstraction:

You want to help? Here's a quick guide on how to implement a chart:

  • Take a look at this commit, which implements all the steps below: 3c6cd67
  • ideally leave a comment here so we dont have multiple ppl doing the same thing
  • go to the figure reference for your trace type
  • implement a trace styling function for your trace type in Trace.fs :
    • use <tracetype>.init
    • implement as many properties of the trace object as parameters for TraceStyle.[tracetype], but watch out if there are already TraceStyle abstractions in place. For example, the following properties are abstracted via TraceStyle.TextLabel:
      • Text
      • Textposition
      • Textfont: Font,
      • Textsrc
      • Textpositionsrc
    • when possible abstract things like enums as StyleParam.
  • implement a higher abstraction in Chart.fs as Chart.[tracetype] that uses TraceStyle.[tracetype] and any other usefull TraceStyle functions to set the needed parameters such as TraceStyle.TextLabel.
  • ideally leave a small poc script in Playground.fsx, or even better docs in docsrc/content
  • Thanks ❤️

Simple

  • Scatter (Scatter, Point, Line, Spline, Bubble, Range, Area, SplineArea, StackedArea)
  • Scatter GL (Scatter, Point, Line, Spline, Bubble)
  • Bar (Bar, StackedBar, Column, StackedColumn)
  • Pie (Pie, Doughnut)
  • Heatmap (Heatmap)
  • HeatMapGL
  • Image (reference) #189
  • Contour (Contour)
  • Table (Table)

Distributions

  • Box (BoxPlot)
  • Violin (Violin)
  • Histogram (Histogram)
  • Histogram 2D (Histogram2d)
  • Histogram 2D Contour (Histogram2dContour)

Finance

3D

Maps

Specialized

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions