plotly / plotly/plotly.js

Printing a HTML with a chart

Open
#7,403 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

The HTML renders well.

The container "myDiv" has a width of 50% - PIC 1.

Now, when I try to print the HTML to A4, the chart is now overflowing, is outside the parent container, not re-sized.

I've added a rectange on the container for clarity.

PIC 1:
Image

PIC 2:
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported HTML-to-A4 print case with the chart inside the 50%-width container "myDiv", comparing its screen and print layouts. Investigate the print-specific sizing behavior; done means the chart remains resized within its parent container when printed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.