question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird pointy on each point

See original GitHub issue

Expected Behavior

I wanted to remove the curve on each points. I used tension: 0

Current Behavior

The problem is there’s a pointy edge on some points 94624334-7c70c200-02b6-11eb-9da9-9e8e7a748634

Steps to Reproduce

This happened when I used

options: {
      // Removes the curve
      elements: {
        line: {
          tension: 0
        }
      },

live bug demo: https://codepen.io/trim-substring/pen/XWdwxWd

Context

I want to have a not rounded point to point line chart

Environment

  • Chart.js version: 2.9.3
  • Browser name and version: Google Chrome Version 85.0.4183.121 (Official Build) (64-bit)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kurklecommented, Sep 30, 2020

as pointed out by @leeoniya:

    elements: {
      line: {
        tension: 0,
        borderJoinStyle: 'round'
      }
    },

makes the pointy edge go away. See MDN for possible values.

0reactions
fleeasura123commented, Sep 30, 2020

Fixed! Thanks @leeoniya and @kurkle

Read more comments on GitHub >

github_iconTop Results From Across the Web

Young People Are Growing Weird Bumps on Their Skulls ...
The growths are happening at a very particular spot of the skull: right at the lower back part of our heads we have...
Read more >
Mexican pointy boots - Wikipedia
Mexican pointy boots (Spanish: Botas picudas mexicanas) or tribal boots (Spanish: botas tribaleras) are a style of pointed fashion boots made with elongated ......
Read more >
50 Years Of 'The Point,' Harry Nilsson's Wonderful ... - NPR
Harry Nilsson's concept album The Point — about a round-headed boy in a world where everything is pointy — turns 50 this year....
Read more >
Pointy Head Puppies: (Is the bump normal?) - HoundGames
Some dogs, especially puppies, may have a large spot on the back of their skull that makes them look like they have a...
Read more >
This white hood carries many meanings - BBC Culture
The pointy garb worn in Spain in the run-up to Easter will horrify many who see it. But this strange costume can mean...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found