本文介绍了如何用highchart图案填充角形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在互联网上搜索有关如何在角度高图中添加highchart patternfill的方法,但是没有找到关于角度的结果.是否有任何可用于angular的插件或有人在angular应用程序中使用过此插件?谢谢.

I have been searching the internet about how to add highchart patternfill in angular highcharts, but no results have been found for angular. Is there any plugin available for angular or anybody have used this in angular application? Thank you.

推荐答案

您需要导入并初始化pattern-fill模块:

You need to import and initialize the pattern-fill module:

import * as Highcharts from "highcharts";
import * as patternFill from "highcharts/modules/pattern-fill";

patternFill(Highcharts);

实时演示: https://codesandbox.io/s/18xojqn50j

文档: https://github.com/highcharts/highcharts-angular/blob/master/README.md#to-load-a-module

这篇关于如何用highchart图案填充角形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 10:43