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

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