我正在尝试创建一个简单的柱状图,并以高度图的角度表示,我收到了以下错误:
ERROR Error: Highcharts error #17: www.highcharts.com/errors/17
at Object.a.error (highcharts.js:10)
at a.Chart.initSeries (highcharts.js:245)
at highcharts.js:270
at Array.forEach (<anonymous>)
at a.each (highcharts.js:28)
at a.Char
我正在尝试将highcharts放入我的angular应用程序中。我从google Sheets获取数据,并从对Google的调用中返回一个promise对象。然后,我使用options对象调用Highcharts.Chart()方法。
在进行调用时,我收到以下错误。我试着弄清楚到底是怎么回事,但我现在迷路了。我有一个原型,我没有使用angular,图表工作得很好。当我去添加一行新的Highcharts.Chart(选项)时,我得到了下面的错误。我删除了这一行,错误就消失了。
任何想法/帮助都是很棒的!
错误:
TypeError: undefined is not a function
我试图在VS代码中运行我的应用程序,并不断地得到错误:
error TS2440: Import declaration conflicts with local declaration of 'Highcharts3d'
请帮我解决这个错误。
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import * as Highcharts from 'highcharts';
import * as Highcharts3d
我在我的angular项目中使用Highchart,一切正常,但当我将angular cli更新到9.1.4时,声明开始抛出以下错误( error screenshot )
Argument of type 'typeof import("/project/node_modules/highcharts/highcharts")' is not
assignable to parameter of type 'typeof import("/project/node_modules/highcharts/highcharts.src")&
当尝试用ng serve编译应用程序时,我得到以下错误:
ERROR in ../node_modules/highcharts-angular/lib/highcharts-chart.component.d.ts(3,58): error TS2709: Cannot use namespace 'OnDestroy' as a type.
../node_modules/highcharts-angular/lib/highcharts-chart.component.d.ts(13,19): error TS2709: Cannot use namespace '