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.

Hello, I tried to remove the padding in the canva but nothing works. I already search I old issues. As you can see on the screen there is a left and bottom padding :

Image of padding

Here is my conf :

const data = {
    labels: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1],
    datasets: [
        {
            data: [2000, 59, 19, 81, 300, 55, 40, 400, 130, 1, 1000],
            hiddenLegend: true,
        }
    ]
};

const options = {
    maintainAspectRatio: false,
    legend: {
        display: false,
    },
    elements: {
        point: {
            radius: 0
        }
    },
    scales: {
        xAxes: [{
            gridLines: {
                display: false,
                drawBorder: false,
            },
            scaleLabel: {
                display: false
            },
            ticks: {
                display: false
            }
        }],
        yAxes: [{
            gridLines: {
                display: false,
                drawBorder: false
            },
            scaleLabel: {
                display: false
            },
            ticks: {
                display: false
            }
        }],
    },
};

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ricoxorcommented, Dec 19, 2017

Thank you very much, my issue is solved.

1reaction
simonbrunelcommented, Dec 19, 2017

Did you try this (instead of dealing with negative padding)?

options: {
    scales: {
        xAxes: [{
            display: false
        }],
        yAxes: [{
            display: false
        }]
    }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove all padding and margin table HTML and CSS
Remove padding between cells inside the table. Just use cellpadding=0 and cellspacing=0 attributes ...
Read more >
How To Adjust the Content, Padding, Border, and Margins ...
You can remove this margin by setting the top and left margin to zero. Like the padding and border, the sizes of specific...
Read more >
Tutorial 3 - Nested lists - Step 3 - Remove padding and margins
To remove this left-indentation consistently across all browsers, set both padding and margins to "0" for the "UL". Go to Step 4 →....
Read more >
How do I remove the table padding (cellborder,padding,etc ...
I have cellpadding, cellspacing, etc. all set to 0 but it doesn't seem to work. Can I somehow set a new CSS class...
Read more >
How to Remove the Cell Spacing in CSS
HTML tables are comprised of rows and cells. In traditional HTML coding you remove the spacing within a cell by setting the “cellspacing”...
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