Skip to content

Commit

Permalink
fix: user journey analytics primary color
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrishab Srivatsa committed Jul 3, 2024
1 parent a4a0bbd commit 310efe5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/CustomCharts/FunnelChart.res
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ let make = (
let i = i->Float.fromInt
let opacity = (i +. 1.) /. length
let borderTop = `${(size *. 14.)
->Float.toString}rem solid rgb(0,109,249,${opacity->Float.toString})`
->Float.toString}rem solid rgb(var(--color-primary),${opacity->Float.toString})`

let currentWidthRatio = switch widths->Array.get(i->Float.toInt) {
| Some(width) => width
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ let make = (
barChartData->Array.mapWithIndex((_data, i) => {
let i = i->Int.toFloat
let opacity = (length -. i +. 1.) /. (length +. 1.)
`rgb(0,109,249,${opacity->Float.toString})`
`rgb(var(--color-primary),${opacity->Float.toString})`
})
}
let defaultOptions: HighchartsHorizontalBarChart.options = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomCharts/HighchartPieChart.res
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let make = (
pieSeriesData->Array.mapWithIndex((_data, i) => {
let i = i->Int.toFloat
let opacity = (length -. i +. 1.) /. (length +. 1.)
`rgb(0,109,249,${opacity->Float.toString})`
`rgb(var(--color-primary),${opacity->Float.toString})`
})
}
let defaultOptions: HighchartsPieChart.options = {
Expand Down

0 comments on commit 310efe5

Please sign in to comment.