1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Use data color for guideline circles

This commit is contained in:
Jose Farias 2024-04-21 11:41:04 -06:00
parent 92b9b96885
commit f239a1e00f

View file

@ -308,7 +308,7 @@ export default class extends Controller {
.attr("cx", this.#d3XScale(d.date))
.attr("cy", this.#d3YScale(d.value))
.attr("r", 8)
.attr("fill", this.#trendColor)
.attr("fill", this.#tooltipTrendColor(d))
.attr("fill-opacity", "0.1")
.attr("pointer-events", "none")
@ -319,7 +319,7 @@ export default class extends Controller {
.attr("cx", this.#d3XScale(d.date))
.attr("cy", this.#d3YScale(d.value))
.attr("r", 3)
.attr("fill", this.#trendColor)
.attr("fill", this.#tooltipTrendColor(d))
.attr("pointer-events", "none")
// Render tooltip