A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/chartjs/Chart.js/issues/2229 below:

Truncated labels · Issue #2229 · chartjs/Chart.js · GitHub

If I set the gridlines in my xAxes to false my bar titles are not shown correctly.

statisticChart = new Chart(ctx, {
                type: 'bar',
                data: copiedData,
                options: {
                    scales: {
                        yAxes: [{
                                ticks: {
                                    beginAtZero: true,
                                    stepSize:1
                                },
                                gridLines: {

                                }
                            }],
                        xAxes: [{
                                ticks:{

                                },
                                gridLines: {
                                    display:false
                                }
                            }]
                    }
                }
            });

If I set gridLines.display to true. Everything works fine.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4