Skip to content

The Column Pair Trends visualization has overlapping text #834

@npatki

Description

@npatki

Environment Details

  • SDMetrics version: 0.27.0 (dev version)
  • Python version: 3.11
  • Operating System: Linux (Colab Notebook)

Error Description

For certain datasets (such as the SDV Demo dataset, 'census'), the "Column Pair Trends" visualization doe not seem to be rendered optimally. The entire visualization seems more narrow than other datasets, and the labels/titles overlap with each other. We should investigate what is causing this, and if there is a way to add more spacing in the plotly object.

Image

Steps to reproduce

Plot the 'census' data.

from sdv.datasets.demo import download_demo
from sdmetrics.reports.single_table import QualityReport as SingleTableQualityReport

dataset = 'census'
real_data, metadata = download_demo('single_table', dataset)

report_default = SingleTableQualityReport()
metadata_dict = metadata.to_dict()['tables'][dataset]
report_default.generate(real_data, real_data, metadata_dict, verbose=False)
report_default.get_visualization('Column Pair Trends')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions