Skip to content

Trailing space after sparkline #73

@PKlknr

Description

@PKlknr

Hi, the svg for sparklines is a bit wider than the paths - this becomes apparent for example when adding a border:
image

This seems to be due to Contex.Sparkline.draw calculating the viewbox width as sparkline.length + 1. Without looking too deeply, changing that to length - 1 seems to fix the issue.

PS: While writing this I noticed the same fix in 56f7ec7 Maybe that could be cherry-picked?

Thanks for this very cool lib!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions