如何在 Anychart 8 上添加副标题和页脚
How to add subtitle and footer on anychart 8
我正在将许多图表从 anychart 6 (xml) 迁移到 anychart 8 (javascript)。我似乎找不到如何在任何图表 8 中添加副标题和页脚?这些在 anychart 6 中可用。
这些功能在最新版本中也可用。请看一下现在的标题:
https://docs.anychart.com/Common_Settings/Title
您可以使用 HTML 标签,例如
title.useHtml(true);
title.text(
"Sales Performance"+
"<br><a style=\"color:#0000FF; font-size: 10px;\">"+
"according to annual report</a>"
);
它将创建字幕:
https://playground.anychart.com/docs/8.0.1/samples/CS_Titles_06-plain
另外,这个例子(它与共同的统计相关,但显示了这个想法):https://playground.anychart.com/docs/8.0.1/samples/CS_Statistics_05-plain
至于页脚,可以用图表标签来完成:
https://docs.anychart.com/Common_Settings/Chart_Labels
您可以定义标签位置、文本内容和其他设置。我做了一个简单的例子来说明这一点:https://jsfiddle.net/sye89q5z/
我正在将许多图表从 anychart 6 (xml) 迁移到 anychart 8 (javascript)。我似乎找不到如何在任何图表 8 中添加副标题和页脚?这些在 anychart 6 中可用。
这些功能在最新版本中也可用。请看一下现在的标题: https://docs.anychart.com/Common_Settings/Title 您可以使用 HTML 标签,例如
title.useHtml(true);
title.text(
"Sales Performance"+
"<br><a style=\"color:#0000FF; font-size: 10px;\">"+
"according to annual report</a>"
);
它将创建字幕: https://playground.anychart.com/docs/8.0.1/samples/CS_Titles_06-plain 另外,这个例子(它与共同的统计相关,但显示了这个想法):https://playground.anychart.com/docs/8.0.1/samples/CS_Statistics_05-plain
至于页脚,可以用图表标签来完成: https://docs.anychart.com/Common_Settings/Chart_Labels 您可以定义标签位置、文本内容和其他设置。我做了一个简单的例子来说明这一点:https://jsfiddle.net/sye89q5z/