UNPKG

quoslibero

Version:

FusionCharts JavaScript charting framework

1 lines 733 B
import{componentFactory}from'../../../fc-core/src/lib';import CategoryAxis from'../../../fc-core/src/axis/category';import AxisSelectorUI from'../_internal/components/axis-selector-ui';export default function(a){let b,c,d=a.getChildren('canvas')[0],e=d.getChildren('axisRefVisualCartesian')[0];b=a._feedAxesRawData(),AxisSelectorUI.resetAxisCount(),componentFactory(a,AxisSelectorUI,'yAxisSelectorUI',b.yAxisConfigure&&b.yAxisConfigure.length,b.yAxisConfigure),componentFactory(a,CategoryAxis,'xAxis',1,b.xAxisConfigure),c=a.getChildren('xAxis')[0],c.setLinkedItem('canvas',d),e.setLinkedItem(c.getId(),c),e.addExtEventListener('visiblerangeset',()=>e.asyncDraw(),c),d.attachAxis(c,!1),d.setPrimaryAxis('xAxis',c),a._setCategories()}