added table

This commit is contained in:
2025-09-06 07:06:47 +02:00
parent 1c41f666dc
commit cc8de33780

View File

@ -1,7 +1,7 @@
import pandas as pd import pandas as pd
from dash import Dash, html import plotly.express as px
from dash import Dash, dcc, html
from dash.dependencies import Input, Output from dash.dependencies import Input, Output
from dash_table import DataTable
from ..data.loader import DataSchema from ..data.loader import DataSchema
from . import ids from . import ids
@ -9,7 +9,7 @@ from . import ids
def render(app: Dash, data: pd.DataFrame) -> html.Div: def render(app: Dash, data: pd.DataFrame) -> html.Div:
@app.callback( @app.callback(
Output(ids.DATA_TABLE, "data"), Output(ids.BAR_CHART, "children"),
[ [
Input(ids.YEAR_DROPDOWN, "value"), Input(ids.YEAR_DROPDOWN, "value"),
Input(ids.MONTH_DROPDOWN, "value"), Input(ids.MONTH_DROPDOWN, "value"),