Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip breaks on max bar value #1716

Closed
Radnik opened this issue Nov 29, 2015 · 7 comments
Closed

Tooltip breaks on max bar value #1716

Radnik opened this issue Nov 29, 2015 · 7 comments
Assignees

Comments

@Radnik
Copy link

Radnik commented Nov 29, 2015

capture

Now, bar chart doesn't show value max+1, while line works perfect (dunno if this cutting tooltip has anything with it)

I tried with xOffset: +/-10, overflow: visible, z-index: max ...but it seems with no affect.

any ideas
thx

@etimberg
Copy link
Member

@Radnik do you mean the scale on the left? Seems the scale did not calculate the correct maximum value. Was your data attached to the chart as strings or numbers?

@Radnik
Copy link
Author

Radnik commented Nov 29, 2015

@etimberg yes scale, both charts use same dataset and options. type: 'bar', and type: 'line',

        var config = {
        type: 'bar',
        data: {
            labels: DataLabel.split(', '),
            datasets: [     
                {
                    data: DataNumberAttempts.split(', ')
                }
                ,
                {

                    data: DataNumberCalls.split(', ')
                }
            ]
        },
        options: {
            responsive: true,
            maintainAspectRatio: false,
            tooltips: {
                titleFontSize: 12,
            },
            scales: {
                xAxes: [{
                    display: true,
                    gridLines: {
                        offsetGridLines: true
                    },
                    scaleLabel: {
                        show: false,
                    }
                }],
                yAxes: [{
                    display: true,
                    gridLines: {
                        offsetGridLines: false
                    },
                    scaleLabel: {
                        show: false,
                    },
                    ticks: {
                        beginAtZero: true,
                        suggestedMin: 1,
                        suggestedMax: 1

                    }

                }]

            }
        }

@etimberg
Copy link
Member

Ok, this seems to be related to #1661

@etimberg
Copy link
Member

are you using the latest built version from the v2.0-dev branch?

@Radnik
Copy link
Author

Radnik commented Nov 29, 2015

yes, it's v2.0-dev branch

@Radnik
Copy link
Author

Radnik commented Nov 30, 2015

@etimberg I can confirm max+1 value works with 2digit values.

Tooltip border radius is 0, it compensate "top cut off" and the overall "look and feel", and it's fine..

capture
capture1

@etimberg etimberg changed the title Tooltip brakes on max bar value Tooltip breaks on max bar value Dec 21, 2015
@etimberg etimberg self-assigned this Dec 23, 2015
@etimberg
Copy link
Member

Closed as #1829 was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants