Skip to content

[Possible Bug] Bar Chart doesn't display right border #3804

Closed
@ChaseLewis

Description

@ChaseLewis

I'm building a bunch of charts for my project and I just noticed an oddity in vertical bar graphs I am not seeing in line charts. The bar charts don't display the right border. I have tried placing 'drawBorder: true' in both Axes but nothing has changed. Is this a bug or am I missing something in the documentation?

Below is my config for the graph

    var config = {
        type: 'bar',
        data: {
            labels: xdata,
            datasets: [{
                label: 'Fake',
                data: supply,
                borderColor: primary,
                backgroundColor: primary
            }]
        },
        options:
        {
            title: {
                display: true,
                text: "Fake",
                fontSize: 22,
                fontStyle: 'bold',
                fontColor: '#000000'
            },
            legend: {
                display: false,
                position: 'right'
            },
            layout: {
                padding: { left: 10, right: 80, bottom: 10, top: 10 }
            },
            scales: {
                xAxes: [{
                    gridLines: {
                        drawBorder: true
                    },
                    scaleLabel: {
                        display: true,
                        labelString: 'Fake',
                        fontStyle: 'bold',
                        fontSize: 16
                    }
                }],
                yAxes: [{
                    ticks: {
                        min: 0
                    },
                    gridLines: {
                        drawBorder: true
                    },
                    scaleLabel: {
                        display: true,
                        labelString: 'Fake',
                        fontStyle: 'bold',
                        fontSize: 16
                    }
                }]

            }
        }
    };

image

Notice the line chart with no settings altered for the borders works fine

image

In fact the bar chart in the documentation has the same issue.
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions