score:1
Accepted answer
first of all don't use an array for your x scales, all the scales need to be defined as objects. second you are placing the options in the wrong part, it has to be configured in the title namespace like so:
scales: {
y: {
title: {
display: true,
text: 'ytitle'
}
},
x: {
title: {
display: true,
text: 'xtitle'
}
}
}
Source: stackoverflow.com
Related Query
- why the main and axis title does not show in chart.js
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- Chart looks only grey, does not show the color - Chartjs,discordjs
- Bar chart (chart.js) with only 2 points does not show one of the bars
- Chart.js returns a console error and does not display the chart when using variables as data input
- Trying to call API and plot a line chart but it does not show
- Why scatter chart does not show axes?
- Why does x axis not increment 'monthly' chart.js. Also, XAxis not taking title
- show label in tooltip but not in x axis for chartjs line chart
- Show X axis on top and bottom in line chart rendered with Chart.js 2.4.0
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- Remove the label and show only value in tooltips of a bar chart
- Chart js: how can I align the legend and the title
- Chartjs does not show annotations when x axis is of type time
- Adding object data to data structure of chart.js chart does not show any data
- How to show tooltip value of all data falling on the same axis in chart js?
- show label inside the chart - angular.js and chart.js
- How do you set x and y axis and Title for a line chart using charts.js?
- Charts.js does not render chart until I open the console
- Angular-Charts bar chart does not update when I change the data, series, labels
- X and Y axis labels not displaying on line chart (Chart.js)
- Chart.js bar chart with time on X axis and category on Y axis is not rendered
- Why ChartJS's Bar Chart does not render bar for a specific value?
- The colors of the bar chart in chart.js is not showing. I tried background color and fill color but none of it worked
- How to show symbols after the label and before the numeric value using chart.js Bar chart in Angular
- Chart js cut the title and the legends
- How to start the chart from specific time and offest hour and then show the data on chart from target datetime in chartjs
- Chart.js how to show line chart without displaying the labels on xaxis and yaxis
- How to show tick marks and labels with grid line for the specific one on the X axis with Chart.js?
- Why is the data from my API not displaying on my chart.js chart in React?
More Query from same tag
- Showing 'undefined%' in the graph if data does not exist
- Line graph in Angular 7 not working - is data type proper?
- Chart.js & Angular 2 - ng2-charts Custom on Click Event
- loading json file to create chart
- Show value on Mixed chart, Charts.js
- How to format x-axis time scale values in Chart.js v2
- How can I add a euro sign (€) to all tooltips in my chart js line chart
- Chart.js br chart only displaying first value
- Leaflet polygon display charts after click
- How to remove x axis scale labels Chart.Js
- Is it possible to add a drop shadow to chart.js line chart?
- updating a chart in chart.JS using a dropdown button
- Chart.js max legend height
- How to change cursor style to pointer on hovering over points of the chart?
- Chartjs : Remove specific labels
- using ajax populate dynamic piechart from chartjs
- Chart.js random rgb background color generator not working
- Am using Chart.js and am trying to list the attendances for the last 7 days
- How to extract ChartJs data and config properties
- Using chart.js inside node.js
- Chart.js - Bar chart with linear cartesian (numerical) X axis?
- How can I keep the vertical lines under the horizontal ruler line is chartjs?
- Chart.js line chart is cut off at the top?
- How to show lables just outside the the doughnut chart in Chartjs?
- Chartjs - line chart display with addData() is bugged?
- How to display "%" sign on mouse hover in Pie-Chart
- Chartjs Doughnut disappears
- How to push array multidimesional in javascript
- vue js bar-chart gradient color not showing
- Chart.js legend position error