Skip to content

Document how to use colors #260

@nhirschey

Description

@nhirschey

Description

Thanks for the great library. Just an FYI:

I can't find anything (obvious) on the website documenting how to use colors. I eventually figured it out by inspecting types but this would be a useful documentation addition, especially in the case of Column charts where the columns are styled with "Marker" which was unintuitive to me.

I got it to work with

  chart
  |> Chart.Column
  |> Chart.withMarkerStyle  (Color = Color.fromKeyword ColorKeyword.Black) 

Repro steps

Browse the plotly.net side-bar for a page showing how to change colors (specifically for a column chart). I checked column charts first and then the basics and then display options pages.

Using the "search" box in the side bar wasn't especially helpful.

Expected behavior

At least one example in the display options page would be useful. But for example, the parameter that I need to use in column charts (MarkerStyle) is not obvious so the long term goal might be to demonstrate colors on each page.

I recognize also that once the API is stable documenting the parameters in the Types (https://plotly.net/reference/plotly-net-chart2d-chart.html#Column) would help figure these things out.

Related information

  • Windows 11
  • .net 6
  • #r "nuget: Plotly.NET, 2.0.0-preview.16"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions