Skip to content

Commit

Permalink
Disable chart smoothing
Browse files Browse the repository at this point in the history
  • Loading branch information
hoblin committed Oct 9, 2023
1 parent 4d4789e commit 8894189
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/decorators/tweet_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class TweetDecorator < Draper::Decorator
delegate_all

def combined_chart
h.area_chart combined_metrics_series, height: "40vh", library: chart_options
h.area_chart combined_metrics_series, height: "40vh", curve: false, library: chart_options
end

def likes_chart
Expand All @@ -12,6 +12,7 @@ def likes_chart
min: min_y(likes_metric),
max: max_y(likes_metric),
height: "60vh",
curve: false,
library: single_metric_chart_options("Likes")
)
end
Expand All @@ -23,6 +24,7 @@ def replies_chart
min: min_y(replies_metric),
max: max_y(replies_metric),
height: "60vh",
curve: false,
library: single_metric_chart_options("Replies")
)
end
Expand All @@ -34,6 +36,7 @@ def reposts_chart
min: min_y(reposts_metric),
max: max_y(reposts_metric),
height: "60vh",
curve: false,
library: single_metric_chart_options("Reposts")
)
end
Expand All @@ -45,6 +48,7 @@ def bookmarks_chart
min: min_y(bookmarks_metric),
max: max_y(bookmarks_metric),
height: "60vh",
curve: false,
library: single_metric_chart_options("Bookmarks")
)
end
Expand All @@ -56,6 +60,7 @@ def views_chart
min: min_y(views_metric),
max: max_y(views_metric),
height: "60vh",
curve: false,
library: single_metric_chart_options("Views")
)
end
Expand Down

0 comments on commit 8894189

Please sign in to comment.