我有带有“react-chartjs-2”的条形图,我应该在 xAxes 中将图表标签的字体系列放在哪里:这样:(不起作用)
<Bar
data={chartData}
options={{ defaults: { global: { defaultFontFamily:"iransans} }}}
/>
Run Code Online (Sandbox Code Playgroud)
这种方式不起作用:
<Bar
data={chartData}
options={{ font: { family: "iransans" }}}
/>
Run Code Online (Sandbox Code Playgroud)
有人知道吗???