Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Oct 17, 2024
1 parent e539b29 commit a800f5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vizro-core/examples/visual-vocabulary/custom_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def diverging_stacked_bar(
ordered from least to most positive.
category_neg (List[str]): List of column names in the DataFrame representing negative values. Columns should be
ordered from least to most negative.
color_discrete_map: Optional[Dict[str, str]]: A dictionary mapping category names to color strings.
color_discrete_map: Optional[dict[str, str]]: A dictionary mapping category names to color strings.
Returns:
go.Figure: A Plotly Figure object representing the horizontal diverging stacked bar chart.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, List, Optional
from typing import Optional

import pandas as pd
import plotly.graph_objects as go
Expand Down Expand Up @@ -37,7 +37,7 @@ def diverging_stacked_bar(
y: str,
category_pos: List[str],
category_neg: List[str],
color_discrete_map: Optional[Dict[str, str]] = None,
color_discrete_map: Optional[dict[str, str]] = None,
) -> go.Figure:
"""Creates a horizontal diverging stacked bar chart (with positive and negative values only) using Plotly's go.Bar.
Expand All @@ -55,7 +55,7 @@ def diverging_stacked_bar(
ordered from least to most positive.
category_neg (List[str]): List of column names in the DataFrame representing negative values. Columns should be
ordered from least to most negative.
color_discrete_map: Optional[Dict[str, str]]: A dictionary mapping category names to color strings.
color_discrete_map: Optional[dict[str, str]]: A dictionary mapping category names to color strings.
Returns:
go.Figure: A Plotly Figure object representing the horizontal diverging stacked bar chart.
Expand Down

0 comments on commit a800f5d

Please sign in to comment.