Skip to content

Commit

Permalink
visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Oct 25, 2023
1 parent c963d11 commit b793e9f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions sdmetrics/reports/single_table/_properties/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,10 @@ def get_visualization(self):

fig = px.bar(
data_frame=self.details.dropna(subset=['Score']),
x='Table',
y='Score',
title=f'Data Diagnostics: Structure (Average Score={round(average_score, 2)})',
category_orders={'group': list(self.details['Column'])},
color='Metric',
pattern_shape='Metric',
pattern_shape_sequence=['', '/'],
hover_name='Column',
hover_data={
'Column': False,
'Metric': True,
'Score': True,
},
)

fig.update_yaxes(range=[0, 1], title_text='Diagnostic Score')
Expand All @@ -99,6 +90,7 @@ def get_visualization(self):
xaxis_categoryorder='total ascending',
plot_bgcolor='#F5F5F8',
margin={'t': 150},
xaxis_title='Table',
)

return fig

0 comments on commit b793e9f

Please sign in to comment.