【问题标题】:AnyChart intersection labels for Venn diagram in ReactReact 中维恩图的 AnyChart 交叉点标签
【发布时间】:2023-02-16 15:12:49
【问题描述】:

在文档中,在Quick Start下,有一种配置交集标签的方法

chart.intersections().labels().format("{%x}");

如何在下面的 React 组件中的交叉点添加标签?

代码沙盒链接:https://codesandbox.io/s/anychart-venn-diagram-mqgy1k?file=/src/components/AnyCharts.jsx

【问题讨论】:

    标签: reactjs anychart


    【解决方案1】:

    anychart-react 库是快速创建图表的绝佳选择。但是,它的配置是有限的。

    在您的示例中,标签默认可见。

    如果您想实现更高级的设置,如 intersection formatting,请考虑使用将嵌入到您的 React 应用程序中的普通 JS 模块。

    请随意尝试 connecting your react app to anychart standalone modules 的示例。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-03
      • 2014-09-21
      • 1970-01-01
      相关资源
      最近更新 更多