小编ami*_*bha的帖子

How to fix "Property 'type' is missing in type but required in type 'SeriesXrangeOptions'" in angular highcharts module

I am trying to display a price chart view of selected cryptocurrency in cryptocurrencies list view but I am getting type mismatch error.

I have used angular-highcharts module in my application and imported Chart library from that module .

import { Chart } from 'angular-highcharts';

series: [{
  name: 'Price',
  data: [{
    id: this.comparearray[0].symbol,
    name: this.comparearray[0].name,
    y: this.comparearray[0].quotes.USD.price
  }]
},
{
  name: "Volume_24h",
  data: [{
    id: this.comparearray[0].symbol,
    name: this.comparearray[0].name,
    y: this.comparearray[0].quotes.USD.volume_24h
  }]
}]
Run Code Online (Sandbox Code Playgroud)

I am getting the below error in all …

highcharts typescript angular

2
推荐指数
3
解决办法
1万
查看次数

标签 统计

angular ×1

highcharts ×1

typescript ×1