Skip to content

Conversation

@hellendag
Copy link
Member

@hellendag hellendag commented Dec 4, 2025

Summary & Motivation

One of our users is reporting strange behavior with asset plot charts, where the chart automatically resizes itself smaller and smaller.

I'm going to try to fix this by putting a wrapper div with a set height, and remove the width and height props from the Line component.

I'm not able to repro the issue myself, but this approach seems worth a try.

How I Tested These Changes

View asset plots, verify that they render properly.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-34thfoc8l-elementl.vercel.app
https://dish-fe-979-chart-resizing-issues.core-storybook.dagster-docs.io

Built with commit dd209d3.
This pull request is being automatically deployed with vercel-action

@hellendag hellendag requested a review from bengotow December 4, 2025 20:42
@hellendag hellendag marked this pull request as ready for review December 4, 2025 20:42
import {useRGBColorsForTheme} from '../app/useRGBColorsForTheme';

ChartJS.register(CategoryScale, LinearScale, LineElement, PointElement, TimeScale);
ChartJS.register(CategoryScale, LinearScale, LineElement, PointElement, TimeScale, ChartTooltip);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't registering the tooltip plugin, but it is used in the options. So I added it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants