UNPKG

quoslibero

Version:

FusionCharts JavaScript charting framework

1 lines 579 B
import RegressionLineExtension from'./regression-line-extension';import{componentFactory}from'../../../fc-core/src/lib';import{isValidDataset,hasRegressionLine}from'./utility-functions';export default{extension:function(a){a.addEventListener('instantiated',function(a){let b=a.sender;isValidDataset(b)&&b.registerFactory('regression',function(a){let b=a.getFromEnv('chart'),c=b.getFromEnv('dataSource').chart,d=a.config.JSONData;componentFactory(a,RegressionLineExtension,'regression',+hasRegressionLine(c,d),[a])})})},name:'Regression',type:'extension',requiresFusionCharts:!0};