diff --git a/Schaad.Accounting.UI/Components/Pages/Charts/Assets.razor b/Schaad.Accounting.UI/Components/Pages/Charts/Assets.razor
index d40a8bd..dabb4d9 100644
--- a/Schaad.Accounting.UI/Components/Pages/Charts/Assets.razor
+++ b/Schaad.Accounting.UI/Components/Pages/Charts/Assets.razor
@@ -1,13 +1,15 @@
-@page "/Assets"
+@page "/Assets"
@rendermode InteractiveServer
-Ausgaben
+Vermögen
-@if (config is not null && layout is not null && data is not null)
-{
-
-}
-else
-{
-
-}
\ No newline at end of file
+
+ @if (config is not null && layout is not null && data is not null)
+ {
+
+ }
+ else
+ {
+
+ }
+
diff --git a/Schaad.Accounting.UI/Components/Pages/Charts/Assets.razor.cs b/Schaad.Accounting.UI/Components/Pages/Charts/Assets.razor.cs
index 8b0747f..112eb91 100644
--- a/Schaad.Accounting.UI/Components/Pages/Charts/Assets.razor.cs
+++ b/Schaad.Accounting.UI/Components/Pages/Charts/Assets.razor.cs
@@ -1,6 +1,7 @@
-using Microsoft.AspNetCore.Components;
+using Microsoft.AspNetCore.Components;
using Plotly.Blazor;
using Plotly.Blazor.Traces;
+using Schaad.Accounting.Datasets.Charts;
using Schaad.Accounting.Interfaces;
namespace Schaad.Accounting.UI.Components.Pages.Charts;
@@ -11,45 +12,23 @@ public partial class Assets : ComponentBase
private Config? config;
private Plotly.Blazor.Layout? layout;
private IList? data;
-
+
[Inject]
private IViewService viewService { get; set; } = null!;
-
+
protected override async Task OnInitializedAsync()
{
- config = new Config
- {
- Responsive = true
- };
-
- layout = new Plotly.Blazor.Layout
- {
- };
+ config = ChartTheme.BaseConfig();
+ layout = ChartTheme.BaseLayout("Vermögen nach Konto");
var accounts = (await viewService.GetAccountViewListAsync()).Where(a => a.Class == ClassIds.Activa);
- var values = new List