diff --git a/app/javascript/controllers/time_series_chart_controller.js b/app/javascript/controllers/time_series_chart_controller.js index 7fc86100..664e989d 100644 --- a/app/javascript/controllers/time_series_chart_controller.js +++ b/app/javascript/controllers/time_series_chart_controller.js @@ -322,7 +322,7 @@ export default class extends Controller { .attr("class", "data-point-circle") .attr("cx", this._d3XScale(d.date)) .attr("cy", this._d3YScale(this._getDatumValue(d))) - .attr("r", 8) + .attr("r", 10) .attr("fill", this._trendColor) .attr("fill-opacity", "0.1") .attr("pointer-events", "none"); @@ -333,7 +333,7 @@ export default class extends Controller { .attr("class", "data-point-circle") .attr("cx", this._d3XScale(d.date)) .attr("cy", this._d3YScale(this._getDatumValue(d))) - .attr("r", 3) + .attr("r", 5) .attr("fill", this._trendColor) .attr("pointer-events", "none"); @@ -364,19 +364,17 @@ export default class extends Controller {
No data available for the selected period.
+<%= t(".data_not_available") %>
Net Worth
+<%= t(".title") %>
<%= series.current.format %>
<% if series.trend.nil? %> -Data not available for the selected period
- <% elsif series.trend.direction.flat? %> -No change vs. prior period
+<%= t(".data_not_available") %>
<% else %> -No data available for the selected period.
+<%= t(".data_not_available") %>
<% if trend.direction.flat? %> - No change + <%= t(".no_change") %><%= " #{comparison_label}" if defined?(comparison_label) && comparison_label.present? %> <% else %> <%= trend.value.is_a?(Money) ? format_money(trend.value) : trend.value.round(2) %> @@ -10,5 +10,8 @@ <% unless trend.percent.infinite? %> (<%= lucide_icon(trend.icon, class: "w-4 h-4 align-text-bottom inline") %><%= trend.percent_formatted %>) <% end %> + + <%= " #{comparison_label}" if defined?(comparison_label) && comparison_label.present? %> + <% end %>
diff --git a/config/locales/views/accounts/en.yml b/config/locales/views/accounts/en.yml index f557755e..e384ef79 100644 --- a/config/locales/views/accounts/en.yml +++ b/config/locales/views/accounts/en.yml @@ -4,7 +4,7 @@ en: account: troubleshoot: Troubleshoot chart: - no_change: no change + data_not_available: Data not available for the selected period create: success: "%{type} account created" destroy: diff --git a/config/locales/views/holdings/en.yml b/config/locales/views/holdings/en.yml index 3003d629..933a8b83 100644 --- a/config/locales/views/holdings/en.yml +++ b/config/locales/views/holdings/en.yml @@ -9,13 +9,13 @@ en: per_share: per share shares: "%{qty} shares" index: - cost: cost + average_cost: Average cost holdings: Holdings - name: name + name: Name new_holding: New transaction no_holdings: No holdings to show. - return: total return - weight: weight + return: Total return + weight: Weight missing_price_tooltip: description: This investment has missing values and we could not calculate its returns or value. @@ -33,5 +33,5 @@ en: settings: Settings ticker_label: Ticker trade_history_entry: "%{qty} shares of %{security} at %{price}" - trend_label: Trend + total_return_label: Total Return unknown: Unknown diff --git a/config/locales/views/pages/en.yml b/config/locales/views/pages/en.yml index ad5f4942..1ee15ca3 100644 --- a/config/locales/views/pages/en.yml +++ b/config/locales/views/pages/en.yml @@ -4,6 +4,9 @@ en: changelog: title: What's new dashboard: + net_worth_chart: + data_not_available: Data not available for the selected period + title: Net Worth no_account_empty_state: new_account: New account no_account_subtitle: Since no accounts have been added, there's no data to diff --git a/config/locales/views/shared/en.yml b/config/locales/views/shared/en.yml index cb632738..37e22cd3 100644 --- a/config/locales/views/shared/en.yml +++ b/config/locales/views/shared/en.yml @@ -10,3 +10,5 @@ en: label: Amount syncing_notice: syncing: Syncing accounts data... + trend_change: + no_change: "no change"