def METHOD_NAME(self):
    """
    generate chart
    """
    self.layer_spec["id"] = f"PolygonLayer-{self.name}"
    if self.opacity:
        self.layer_spec["opacity"] = self.opacity
    self.layer_spec.update(self.input_layer_spec)
    if self.elevation_column is not None:
        self.layer_spec[
            "getElevation"
        ] = f"@@={self.elevation_column}*{self.elevation_factor}"
    self.deck_spec["initialViewState"]["latitude"] = self.get_mean(
        self.y_range
    )
    self.deck_spec["initialViewState"]["longitude"] = self.get_mean(
        self.x_range
    )
    if self.mapbox_api_key:
        self.deck_spec["mapboxApiAccessToken"] = self.mapbox_api_key
    # set map style to default if not set by user to light mode
    self.deck_spec["mapStyle"] = (
        self.map_style
        or "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
    )
    self.deck_spec["layers"] = [self.layer_spec]
    self.chart = PanelDeck(
        x=self.x,
        data=self.source,
        spec=self.deck_spec,
        colors=self.source[self.rgba_columns],
        default_color=list(ImageColor.getrgb(self.nan_color)) + [50],
        tooltip_include_cols=self.tooltip_include_cols,
    )