Skip to content

interactive_data_values gets overwritten in nanoplot_options() to always be True #791

@lorenzo-w

Description

@lorenzo-w

Prework

Description

Describe the bug clearly and concisely.

Reproducible example

  • Post a minimal reproducible example (MRE) so the maintainer can troubleshoot the problems you identify. A reproducible example is:
    • Runnable: post enough code and data so any onlooker can create the error on their own computer.
    • Minimal: reduce runtime wherever possible and remove complicated details that are irrelevant to the issue at hand.
    • Readable: format your code according to the Style Guide for Python Code.
from great_tables import GT, nanoplot_options
from great_tables.data import islands

islands_mini = islands.head(10).astype({"size": float})

# Create a display table showing ten of the largest islands in the world
gt_tbl = GT(islands_mini).fmt_nanoplot(
    columns="size",
    plot_type="bar",
    options=nanoplot_options(interactive_data_values=False),
)

# Show the output table
gt_tbl.show()

Expected result

Data point values should be statically displayed instead of appearing on hover when setting interactive_data_values=False. This is documented behavior.

Development environment

  • Operating System: Windows 11
  • great_tables Version: 0.19.0

Additional context

I am also having trouble gettingshow_y_axis_guide=True to work, but this is another topic.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions