def calculate_charts(): visualizations = [MonthlyTrendVisualization(), MonthlySubcategoriesVisualization(), AnnualTrendVisualization(), AnnualSunburstVisualization(), TransactionBubblesVisualization(), AccumulatedTrendVisualization(), TransactionTableVisualization()] global _data_provider, _html_plots charts = list(map(lambda vis: vis.build(_data_provider), visualizations)) _html_plots = list(map(lambda chart: ChartBuilder.create_plot(chart), charts))
def build_visualization(self) -> go.Figure: header_row = ['Date', 'Payment reason', 'Recipient', 'Main-category', 'Sub-category', 'Amount'] return ChartBuilder.create_table(self._df_all_ta, header_row)
def build_visualization(self) -> go.Figure: return ChartBuilder.create_trend_chart_with_table( self._x_axis, self._category_values, self._df_summaries, show_range_selectors=True)
def build_visualization(self) -> go.Figure: return ChartBuilder.create_bubble_chart(self._category_values)
def build_visualization(self) -> go.Figure: return ChartBuilder.create_stacked_area_plot(self._x_axis, self._category_values)
def build_visualization(self) -> go.Figure: return ChartBuilder.create_sunburst_plot(self._df_agg_years)