我在我的项目中使用ng2-charts,它基本上只是chart.js上的一个包装器,所以我也必须安装chart.js。根据chart.js文档,moment is included by default在构建时,必须通过配置排除掉,通过配置webpack。有没有办法在angular应用程序中配置构建?或者其他一些排除moment的方法?注意,我没有直接使用chart.js,它是由ng2-charts库使用的。
我正在使用react-chartjs-2创建一个线条图。在这种情况下,我想在xAxes中使用时间。但我得到了以下错误。method is not implemented: either no adapter can be found or an incomplete integration was provided var startDate = moment().subtract(1, 'year').format('MMM YYYY');
var