Skip to content

Charts don't resize appropriately for print view #1275

Closed
@wallacedf

Description

@wallacedf

Currently, if you have a fluid chart and resize the browser window, the chart will be resized correctly to fit in the new available width. That is working fine. However, the same does not happen when you try to print that chart.

The easiest way to reproduce the issue is looking at the official response fluid chart example: https://plot.ly/javascript/responsive-fluid-layout/

If you try to print the page, you'll notice that the chart is cut off. The window.resize() function is actually called but, for some reason, it looks like the chart still reflects the width of the normal browser window rather than the width of the print view:

http://codepen.io/anon/pen/vyoBrW

Could you please check this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething brokencommunitycommunity contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions