mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 15:05:22 +02:00
Sankey Diagram (#2269)
* Enhance cash flow dashboard with new cash flow period handling and improved Sankey diagram rendering. Update D3 and related dependencies for better performance and features. * Fix Rubocop offenses * Refactor Sankey chart controller to use Number.parseFloat for value formatting and improve code readability by restructuring conditional logic for node shapes.
This commit is contained in:
parent
caf35701ef
commit
868d4ede6e
44 changed files with 451 additions and 20 deletions
|
@ -31,13 +31,21 @@
|
|||
period: @period
|
||||
} %>
|
||||
</section>
|
||||
<section>
|
||||
<%= render "pages/dashboard/balance_sheet", balance_sheet: @balance_sheet %>
|
||||
</section>
|
||||
|
||||
<%= turbo_frame_tag "cashflow_sankey_section" do %>
|
||||
<section class="bg-container py-4 rounded-xl shadow-border-xs">
|
||||
<%= render partial: "pages/dashboard/cashflow_sankey", locals: {
|
||||
sankey_data: @cashflow_sankey_data,
|
||||
period: @cashflow_period
|
||||
} %>
|
||||
</section>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<section>
|
||||
<%= render "pages/dashboard/no_accounts_graph_placeholder" %>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<section>
|
||||
<%= render "pages/dashboard/balance_sheet", balance_sheet: @balance_sheet %>
|
||||
</section>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue