Skip to content

Treemap Color property is not working #205

Description

@MaheshPunna
open Plotly.NET

let values = [0.0; 11.0; 12.0; 13.0; 14.0; 15.0; 20.0; 30.0]
let labels = ["container"; "A1"; "A2"; "A3"; "A4"; "A5"; "B1"; "B2"]
let parents = [""; "container"; "A1"; "A2"; "A3"; "A4"; "container"; "B1"]

let markerColors = ["pink"; "royalblue"; "lightgray"; "purple"; 
                        "cyan"; "lightgray"; "lightblue"; "lightgreen"]
                        |> Seq.map (fun c-> Color.fromString c)
                        |> Color.fromColors

Chart.Treemap(labels,
              parents,
              Values = values, 
              Color = markerColors) 

Expected Behavior:

image

Current Behavior:

image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo