mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-27 09:09:41 +02:00
Fix indicator color
This commit is contained in:
parent
23e71f82c5
commit
406e294dac
1 changed files with 8 additions and 5 deletions
|
@ -203,26 +203,29 @@ export default class extends Controller {
|
|||
this.#d3FullChartGroup.selectAll(".guideline").remove()
|
||||
|
||||
// Big circle
|
||||
this.#d3FullChartGroup.append("circle")
|
||||
this.#d3FullChartGroup
|
||||
.append("circle")
|
||||
.attr("class", "data-point-circle")
|
||||
.attr("cx", this.#d3XScale(d.date))
|
||||
.attr("cy", this.#d3YScale(d.value))
|
||||
.attr("r", 8)
|
||||
.attr("fill", tailwindColors.green[500])
|
||||
.attr("fill", this.#trendColor)
|
||||
.attr("fill-opacity", "0.1")
|
||||
.attr("pointer-events", "none")
|
||||
|
||||
// Small circle
|
||||
this.#d3FullChartGroup.append("circle")
|
||||
this.#d3FullChartGroup
|
||||
.append("circle")
|
||||
.attr("class", "data-point-circle")
|
||||
.attr("cx", this.#d3XScale(d.date))
|
||||
.attr("cy", this.#d3YScale(d.value))
|
||||
.attr("r", 3)
|
||||
.attr("fill", tailwindColors.green[500])
|
||||
.attr("fill", this.#trendColor)
|
||||
.attr("pointer-events", "none")
|
||||
|
||||
// Guideline
|
||||
this.#d3FullChartGroup.append("line")
|
||||
this.#d3FullChartGroup
|
||||
.append("line")
|
||||
.attr("class", "guideline")
|
||||
.attr("x1", this.#d3XScale(d.date))
|
||||
.attr("y1", 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue