- Issue created by @redbrickone
- Status changed to Needs review
almost 2 years ago 9:19pm 7 February 2023 - πΊπΈUnited States andileco
Hi @redbrickone - you can already do that using the Charts API (see: https://git.drupalcode.org/project/charts/-/blob/5.0.x/charts.api.php#L117)
This works but replace 'serif' with your font of choice:
function MY_THEME_chart_definition_alter(array &$definition, array $element, $chart_id) { $definition['chart']['style']['fontFamily'] = 'serif'; }
- πΊπΈUnited States redbrickone
Gotcha, thank you! I will look into this. We also found a route just using CSS so we can probably close this issue. I was under the impression we couldn't modify the styles within the chart which doesn't seem to be the case. Thanks for your prompt reply, you rock!
- Status changed to Closed: works as designed
almost 2 years ago 10:48pm 8 February 2023 - πΊπΈUnited States andileco
Thank you! I'll close. By the way, right now this module is really just a placeholder for if/when the Charts Highcharts submodule of the Charts module is removed from Charts. So you are probably better off posting into the Charts queue directly.