Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
DaTrader authored and mindok committed Jan 27, 2024
1 parent 5a42913 commit 997a0f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/chart/ohlc.ex
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,10 @@ defmodule Contex.OHLC do

y_vals = get_y_vals(row, accessors)

scaled_y_vals = Map.new( y_vals, fn { k, v} ->
{ k, transforms.y.( v)}
end)
scaled_y_vals =
Map.new(y_vals, fn {k, v} ->
{k, transforms.y.(v)}
end)

color = get_colour(y_vals, plot)
draw_row(options, x, scaled_y_vals, color)
Expand Down Expand Up @@ -265,7 +266,7 @@ defmodule Contex.OHLC do

style =
[
~s|style="stroke: ##{colorized_bars && body_color || shadow_color}"|,
~s|style="stroke: ##{(colorized_bars && body_color) || shadow_color}"|,
(crisp_edges && ~s| shape-rendering="crispEdges"|) || ""
]
|> Enum.join()
Expand Down

0 comments on commit 997a0f0

Please sign in to comment.