You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/07/20 08:49:08 UTC

[GitHub] [echarts] dileepyelleti commented on issue #14418: TypeError: on using model for dataset.source

dileepyelleti commented on issue #14418:
URL: https://github.com/apache/echarts/issues/14418#issuecomment-1190003871

   > I think you can solve this with problem with this simple code:
   > 
   > ```
   > const dataMaxObservation = new Array<WaveHeatData>();
   > 
   > dataset:[
   >           {
   >             source: dataMaxObservation as any,
   >             dimensions: ['date','temperature']
   >           },
   > ```
   > 
   > Cast as any and typescript will not annoying more.
   
   Thanks for replying. I already did that. I don't understand the point of keeping type restriction in the first place 'OptionSourceData<string | number | Date, OptionDataItemOriginal<string | number | Date>>'. If we must cast to any anyhow


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org