Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Show 0% change on the small plot (#3478)
hq130b4dc287246
diff --git a/lib/plausible_web/live/components/visitors.ex b/lib/plausible_web/live/components/visitors.exindex c5d17eb749..24cbfedfdc 100644--- a/lib/plausible_web/live/components/visitors.ex+++ b/lib/plausible_web/live/components/visitors.ex@@ -38,7 +38,7 @@ defmodule PlausibleWeb.Live.Components.Visitors do|> assign(:id, Ecto.UUID.generate())~H"""- <svg viewBox={"0 -1 #{(@points_len - 1) * @tick} #{@height + 2}"} class="chart w-full mb-2">+ <svg viewBox={"0 -1 #{(@points_len - 1) * @tick} #{@height + 3}"} class="chart w-full mb-2"><defs><clipPath id={"gradient-cut-off-#{@id}"}><polyline points={@clip_points} />diff --git a/lib/plausible_web/live/sites.ex b/lib/plausible_web/live/sites.exindex 8aec36e3ef..b60b4626b7 100644--- a/lib/plausible_web/live/sites.ex+++ b/lib/plausible_web/live/sites.ex@@ -258,7 +258,8 @@ defmodule PlausibleWeb.Live.Sites dodef percentage_change(assigns) do~H"""- <p :if={@change != 0} class="dark:text-gray-100">+ <p class="dark:text-gray-100">+ <span :if={@change == 0} class="font-semibold text-green-500">〰</span><span :if={@change > 0} class="font-semibold text-green-500">↑</span><span :if={@change < 0} class="font-semibold text-red-400">↓</span><%= abs(@change) %>%