score:21
Accepted answer
try giving title as string[] array as shown in below example.
var chart = new Chart(ctx, {
type: 'line',
data: data,
options: {
title: {
display: true,
text: ['Chart.js','Line Chart']
}
}
})
Please go through the reference for more details. http://www.chartjs.org/docs/latest/configuration/title.html
Hope this helps you.
Source: stackoverflow.com
Related Query
- How to display data labels outside in pie chart with lines in ionic
- Chart.js - How to display title in multiple lines?
- How to make tool tip contents display on multiple lines
- How to display multiple y axis titles on seperate lines and rotated 90 degrees clockwise in chart.js
- how to display multiple sum with chart js and laravel?
- Chart.js how to display multiple labels on multi bar stacked chart
- chart js : how to display title or lable?
- how to not repeat code while creating multiple charts in chart js
- How can I make two of my lines in Chart JS thicker
- How do you hide the title of a chart tooltip?
- How to display Line Chart dataset point labels with Chart.js?
- How to display value of only one datapoint in line chart
- How to display inline values in a stacked bar chart with Chart.js?
- How to display the labels in doughnut chart using ng2 charts?
- how to create multiple chart on one component vue
- how to add a title to my ng2-charts bar chart
- Chart js: how can I align the legend and the title
- How can I display the xAxes and yAxes data in the tooltip, Chart JS?
- ChartJS - how to display line chart with single element as a line? (not as a dot)
- How to add title inside doughnut chart in Angular Chart?
- ng2-charts: How to set Title of chart dynamically in typescript
- Angular-chart / line chart with multiple horizontal lines (margins)
- ChartJS / Chartjs-plugin-annotation How to draw multiple vertical lines using an array?
- ChartJS v2 - Keep tooltip open when user click on a point of a multiple lines chart
- ChartJS : How to display two "y axis" scales on a chart
- how to display chart data as html table chartjs
- How to Remove axis Lines from chart in chart js
- How to display chart using Chartjs with JSON data in Laravel
- How do I get a chart.js chart to display data in a Node/React web application?
- How to draw multiple color bar in a bar chart using chart.js
More Query from same tag
- ChartJS different border color for legend
- Chart.js and long labels
- ChartJS - how to display line chart with single element as a line? (not as a dot)
- how to manipulate with the y-axis values in chartjs
- Chart js x-axis values getting repeated twice
- How do I prevent the scale labels from being cut off in chartjs?
- Prevent scroll when calling update()
- How do I import chartjs as an es6 module?
- ChartJS, nested flexbox, not shrinking
- Multiple stacked bar chart using ChartJs
- Chart.js - Multiple bar Charts - Only Show Last Chart
- webpack `this` not pointing to window (Chart.js breaks)
- Chart.js - Increase space between y Axes and the first column bar
- Different gridline steps on chart js line chart
- How to force animation on chartjs?
- Alternating bars in bar chart in chart.js are not labelled
- Failed to create chart
- Chartjs Graph is not showing in colorbox
- Passing text to a popup window opened in a JS function
- How to wrap X axis labels to multi-lines (X axis label formatting) in ng2-Charts?
- Does the chartjs supports localization?
- Chart options in angularJs (NodeRed Charts)
- Chart.js line chart not showing in Google Chrome canvas(only in Microsoft Edge)
- Chart.js graph with just two cordinates
- ChartJs x axis labels on waterfall chart
- import Json formatted values to create bar charts with Chart.js
- ng-repeat in ChartJS AngularJS
- Add Text to Doughnut Chart - ChartJS
- Calling a TypeScript function from a Chart.js option callback
- Trying to refresh label when click on it. Cannot read property '_meta' of undefined"