Configurando o gráfico com parâmetros que potencializam a visualização dos dados
Chamando a função do gráfico de barras
ax = grafico_vendas_regiao()
Personalizando a legenda
ax.legend(bbox_to_anchor=(1,1), reverse = True, title = "Região", title_fontsize = 12, fontsize = 12)
fig = ax.get_figure()
AttributeError Traceback (most recent call last)
/tmp/ipython-input-2786473445.py in <cell line: 0>()
5
6 # Personalizando a legenda
----> 7 ax.legend(bbox_to_anchor=(1,1), reverse = True, title = "Região", title_fontsize = 12, fontsize = 12)
8
9 fig = ax.get_figure()
AttributeError: 'NoneType' object has no attribute 'legend'