Skip to content

imageURI width parameter doesn't work as expected #4901

@andrussuitsu

Description

@andrussuitsu

Description

The width parameter to imageURI API call applies to the canvas but the image within the canvas still has the same original size.

Steps to Reproduce

  1. Open codepen https://codepen.io/andrussuitsu/pen/azoEZKB
  2. It will open a separate tab containing the image exported using imageURI API call.

Expected Behavior

I expect the chart to be scaled so that it will fill the 4096 area. I need this for exporting the image with a better resolution.

Actual Behavior

The chart still looks the same width, it is just on a larger canvas now.

Screenshots

Please look at the codepen link.

Reproduction Link

https://codepen.io/andrussuitsu/pen/azoEZKB

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