Skip to content

Commit

Permalink
Reverted back to the original colors for age groups (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
breki committed Dec 30, 2020
1 parent 22a6aa5 commit 7331471
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/visualizations/DataAnalysis/AgeGroupsTimeline.fs
Original file line number Diff line number Diff line change
Expand Up @@ -191,22 +191,13 @@ let getAgeGroupTimelineAllSeriesData

if hasAnyNonZeroValues then
let points = ageGroupTimeline |> mapAllPoints

let baseColorOfAgeGroupHex = AgeGroup.colorOfAgeGroup index
let baseColorOfAgeGroup = Colors.fromHex baseColorOfAgeGroupHex
printfn "color=%A" baseColorOfAgeGroup
let mixinColor = Colors.fromHex "#8C71A8"
printfn "mixinColor=%A" mixinColor
let mixedColor =
Colors.mixColors baseColorOfAgeGroup mixinColor 0.3
let mixedColorHex = Colors.toHex mixedColor
printfn "mixedColorHex=%A" mixedColorHex
let color = AgeGroup.colorOfAgeGroup index

pojo {|
``type`` = "column"
visible = true
name = ageGroupKey.Label
color = mixedColorHex
color = color
data = points
animation = false
|} |> Some
Expand Down

0 comments on commit 7331471

Please sign in to comment.