如何更改Chartist html轴标签的字体特征?

问题描述

基于一位Chartist作者的帖子,我实现了将html锚元素放入Y轴标签功能。如建议的那样,我将代码添加到我的Javascript源中,用于这样的插件

// HTML Label plugin
Chartist.plugins = Chartist.plugins || {};
Chartist.plugins.ctHtmlLabels = function(options) {
  return function(chart) {
    chart.on('draw',function(context) {
      if (context.type === 'label') {
        // Best to combine with something like sanitize-html
        context.element.empty()._node.innerHTML = context.text;
      }
    });
  }
}

这成功地允许将可导航的元素设置到轴标签中。但是,我想将显示的文本链接的字体特征修改为默认的Times Roman 12 pt外观以外的内容。该怎么做?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)