def __addAnnotationsLegend(fig: go.Figure, config: dict):
    y0 = (- 0.4)
    fig.add_shape(type='rect', x0=0.0, y0=y0, x1=0.8, y1=(y0 - 0.2), xref='paper', yref='paper', line_width=2, fillcolor='white')
    fig.add_annotation(text=f"<b>{config['annotationTexts']['heading1']}:</b><br><br><br><b>{config['annotationTexts']['heading2']}:</b>", align='left', xanchor='left', x=0.0, yanchor='top', y=y0, xref='paper', yref='paper', showarrow=False)
    for i in range(6):
        fig.add_annotation(text=(f'{(i + 1)}: ' + config['annotationTexts'][f'point{(i + 1)}']), align='left', xanchor='left', x=(0.0 + ((i % 3) * 0.22)), yanchor='top', y=(y0 - (0.03 if (i < 3) else 0.13)), xref='paper', yref='paper', showarrow=False)
def __addAnnotationsLegend(fig: go.Figure, config: dict):
    y0 = (- 0.4)
    fig.add_shape(type='rect', x0=0.0, y0=y0, x1=0.8, y1=(y0 - 0.2), xref='paper', yref='paper', line_width=2, fillcolor='white')
    fig.add_annotation(text=f"<b>{config['annotationTexts']['heading1']}:</b><br><br><br><b>{config['annotationTexts']['heading2']}:</b>", align='left', xanchor='left', x=0.0, yanchor='top', y=y0, xref='paper', yref='paper', showarrow=False)
    for i in range(6):
        fig.add_annotation(text=(f'{(i + 1)}: ' + config['annotationTexts'][f'point{(i + 1)}']), align='left', xanchor='left', x=(0.0 + ((i % 3) * 0.22)), yanchor='top', y=(y0 - (0.03 if (i < 3) else 0.13)), xref='paper', yref='paper', showarrow=False)