Angularjs 当我加上「;“中学”;作为名称字段属性,则图表消失

Angularjs 当我加上「;“中学”;作为名称字段属性,则图表消失,angularjs,angular,ejs,Angularjs,Angular,Ejs,这是一个角度应用程序,主要文件是snapshot.component和snapshot.html文件。当我试图在html文件中添加“secondary”作为name字段属性时,财务图表就消失了。反之,删除关键字“secondary”(但不是完整的图表)后,图表再次出现。那么,关键字“secondary”的确切含义是什么呢 另外,当我添加“secondary”关键字时,浏览器控制台还返回一个错误,上面写着“TypeError:无法读取未定义的'minimum'属性” 我提前感谢你们中的任何一位 守

这是一个角度应用程序,主要文件是snapshot.component和snapshot.html文件。当我试图在html文件中添加“secondary”作为name字段属性时,财务图表就消失了。反之,删除关键字“secondary”(但不是完整的图表)后,图表再次出现。那么,关键字“secondary”的确切含义是什么呢

另外,当我添加“secondary”关键字时,浏览器控制台还返回一个错误,上面写着“TypeError:无法读取未定义的'minimum'属性”

我提前感谢你们中的任何一位

守则如下:

HTML代码:

<ejs-rangenavigator> </ejs-rangenavigator>
<ejs-chart id="chart-container" [primaryXAxis] = 'primaryXAxis' >
  <e-series-collection>
    <e-series [dataSource]='stockData' yAxisName='secondary' width='2' type='Column' xName='x' yName='volume'> </e-series>
    <e-series [dataSource]='stockData' width='2' type='Candle' xName='x' yName='close' high='high' low='low' open='open' close='close' volume='volume' name='Apple Inc' bearFillColor='#2ecd71' bullFillColor='#e74c3d'> </e-series>
  </e-series-collection>
  </ejs-chart>

顺便说一下,所有的错误都出现在指向syncfusion包的浏览器控制台上,如“at Series.push../node_modules/@syncfusion/ej2 charts/src/chart/Series/chart-Series.js.SeriesBase.findVisibility(chart Series.js:552)”。。。错误属性为“rect”。今天我更新了syncfusion包,错误属性改为“最小”
import { Component, OnInit } from '@angular/core';
import {HttpClient, HttpHeaders} from "@angular/common/http";



@Component({
  selector: 'app-snapshot',
  templateUrl: './snapshot.component.html',
  styleUrls: ['./snapshot.component.css']
})

export class SnapshotComponent implements OnInit {


  public primaryXAxis: Object;
  public primaryYAxis: Object;
  public rows: Object;
  public axes: Object;
  ngOnInit(): void {
    this.primaryYAxis = {
      plotOffset: 25,
      rowIndex: 1, opposedPosition: true,
      rangePadding: 'None',
    };
    this.primaryXAxis = { valueType: 'DateTime' };
    this.rows = [
      { height: '15%' },
      { height: '85%' }
    ];
    this.axes = [{
      name: 'secondary', opposedPosition: true, rowIndex: 0,
    }];
  }

 
  public stockData: object[] = [
    { x: new Date("2012-04-02"), open: 85.975716, high: 88.395714, low: 85.76857, close: 88.375717, volume: 14958790 },
    { x: new Date("2012-04-03"), open: 89.614288, high: 90.315712, low: 88.93, close: 89.902855, volume: 20863990 },
    { x: new Date("2012-04-04"), open: 89.192856, high: 89.408569, low: 88.14286, close: 89.187141, volume: 14324520 },
    { x: new Date("2012-04-05"), open: 89.568573, high: 90.665718, low: 89.057144, close: 90.525711, volume: 16032450 },
    { x: new Date("2012-04-09"), open: 89.447144, high: 91.405716, low: 89.328575, close: 90.889999, volume: 14938420 },
    { x: new Date("2012-04-10"), open: 91.418571, high: 92, low: 89.428574, close: 89.777145, volume: 22243130 },
  ]

}