MCPcopy
hub / github.com/chartjs/Chart.js / createTitle

Function createTitle

src/plugins/plugin.title.js:108–118  ·  view source on GitHub ↗
(chart, titleOpts)

Source from the content-addressed store, hash-verified

106}
107
108function createTitle(chart, titleOpts) {
109 const title = new Title({
110 ctx: chart.ctx,
111 options: titleOpts,
112 chart
113 });
114
115 layouts.configure(chart, title, titleOpts);
116 layouts.addBox(chart, title);
117 chart.titleBlock = title;
118}
119
120export default {
121 id: 'title',

Callers 1

startFunction · 0.85

Calls 1

configureMethod · 0.65

Tested by

no test coverage detected