score:2
Accepted answer
for global use: chart.defaults.font.family = "lato"
.
details here.
score:1
the correct way to specify would be like this (in options
):
plugins: { // not plugin
legend: { // extra layer: legend
labels: { // with an "s"
font: {
family: "lato" // right here
}
}
}
}
Source: stackoverflow.com
Related Query
- How to add font family to Chart.js V3.7.0
- How to change React line chart tooltip title font family in chart.js
- How to add text inside the doughnut chart using Chart.js?
- How set color family to pie chart in chart.js
- How to add an on click event to my Line chart using Chart.js
- How to add an offset to a dataset in Chart js
- How to add second Y-axis for Bar and Line chart in Chart.js?
- How to add text in centre of the doughnut chart using Chart.js?
- Is it possible to add a custom font to chart js?
- Chart js. How to change font styles for "labels" array?
- How to add datas to chart js from javascript array itself?
- How to add panning to chart in chartjs?
- how to add a title to my ng2-charts bar chart
- How to add comma in this chart js
- How to add gradient background to Line Chart [vue-chart.js]
- How can I add some text in the middle of a half doughnut chart in Chart.JS?
- How to add ChartJS code in Html2Pdf to view image
- How to draw a needle on a custom donut chart and add datapoints to the needle?
- How to add images to chart labels with vue-chartjs?
- How to add an image to a slice of a donut chart in chart.js?
- How to add background image in bar chart column in Chart.js?
- How to add label in chart.js for polar chart area
- How to add title inside doughnut chart in Angular Chart?
- how to change default font family in react-chartjs-2
- ChartJS version 3 how to add percentage to pie chart tooltip
- Using chart js version 3, how to add custom data to external tooltip?
- How to add area with break on line chart with fill color
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- how to add FAHRENHEIT symbol in chart js donut chart
- How to add a chart with a table in Chart.js?
More Query from same tag
- Trying to access key in JSON array
- Chart.js : Is there a way to name each bubble in chart?
- How to use percentage scale with Chart.js
- Chart.js dynamically upating data using variable
- Chart.js add direction arrows to the X and Y axes
- chartjs cutoutPercentage and tooltips does not works in nextjs
- How to use Axios API with Chart.js and React.js
- Chat js with respose ajax
- How to catch an onClick event on bubble chart?
- How to change the font size of yAxis ticks in chartJs?
- show more dataset than labels in chart.js
- Bar charts not getting displayed correctly when bar is below zero (chart.js)
- Chart.js not showing in my view
- How to make lines in line charts from ng2-charts straight lines?
- how to label axis within radar chart with chart.js
- Chart JS - single lines (points) tooltips
- Style a specific X-axis label with ChartJS
- Chart JS — Conditional horizontal row background colours
- Can't get if else statement in tooltip label to work in chartjs
- react-chartjs integration error. Cannot read property 'xLabels' of undefined
- React ChartJS Scatter Plot - cannot plot the data
- Ionic/Chart.js - Cannot read property 'nativeElement' of undefined
- ChartJS:align zeros on chart with multi axes
- How to change line color based on data - chartist or chart.js
- Chart.js - Multiple generateLegend() functions on same page
- How do I remove the y-axis labels from a graph?
- Add Space Between Bars in Angularjs Chartjs
- chart.js fixed bar width issue
- Drill down charts dynamic functionality
- How to navigate tooltips popup by clicking custom buttons outside Chart.js v2 canvas?