Chart.js: Title is not shown in Beta 7

Created on 20 Dec 2020  Â·  3Comments  Â·  Source: chartjs/Chart.js

Hi there,

I use:

...

        var LineGraph = new Chart(ctx, {
            type: 'line',
            data: chartdata,
            options: {
                title: {
                    display: true,
                    text: 'Temperatur ' + '\u{00B0}' + 'C Balkon letzte 5 Tage '
                },

...

Greetings and merry christmas

bug

Most helpful comment

Title is moved to the plugins section, try to put it like this:

options:{
  plugins:{
    title:{}
  }
}

All 3 comments

Title is moved to the plugins section, try to put it like this:

options:{
  plugins:{
    title:{}
  }
}

@LeeLenaleee has the correct answer

Thx a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

longboy picture longboy  Â·  3Comments

HeinPauwelyn picture HeinPauwelyn  Â·  3Comments

SylarRuby picture SylarRuby  Â·  3Comments

lizbanach picture lizbanach  Â·  3Comments

adriantombu picture adriantombu  Â·  3Comments