Skip to content

Commit

Permalink
chars plot fontsize config
Browse files Browse the repository at this point in the history
  • Loading branch information
awb99 committed Aug 31, 2023
1 parent 42338d3 commit 526326a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 14 additions & 1 deletion lib/tradingview/src/ta/tradingview/chart/plot.clj
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,17 @@

(defn shape [shape-kw]
(or (get shape-types shape-kw)
(:cross shape-types)))
(:cross shape-types)))


(def text-sizes
{:auto "auto"
:tiny "tiny"
:small "small"
:normal "normal"
:huge "huge"})


(defn text-size [size-kw]
(or (get text-sizes size-kw)
(:auto text-sizes)))
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
:trackPrice false ; Show price line (horizontal line with last price)
:textColor "#ffff00" ; Set the plotted line color to dark red
:transparency 0
:fontsize 20
:size "small"
}
"cols" {:linestyle 0
:visible true
Expand Down Expand Up @@ -151,9 +151,7 @@
"precision" 4}
"plots" (plots col-spec)
"defaults" {"styles" (plot-styles col-spec)}

"inputs" []

"styles" (plot-config col-spec)}))


Expand Down

0 comments on commit 526326a

Please sign in to comment.