Skip to content

Treemap Color property is not working #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MaheshPunna opened this issue Sep 26, 2021 · 0 comments · Fixed by #250
Closed

Treemap Color property is not working #205

MaheshPunna opened this issue Sep 26, 2021 · 0 comments · Fixed by #250

Comments

@MaheshPunna
Copy link

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

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

Successfully merging a pull request may close this issue.

2 participants