{"title":"可滚动图表","inframe":false,"hidden":false,"roles":{"demo":1,"dev":1},"pageLink":"","children":[{"configs":{"itemId":"module"},"events":{"initialize":"Wb.apply(app, {\n  startIndex: 0,\n  endIndex: 9\n});"},"children":[{"configs":{"layout":"border","itemId":"viewport1"},"events":{"resize":"app.slider1.setWidth(width);"},"children":[{"configs":{"region":"center","itemId":"chart1"},"children":[{"configs":{"pageSize":"-1","autoLoad":"true","itemId":"store","filters":"[\n  function(item) {\n    return item.index >= app.startIndex && item.index <= app.endIndex;\n  }\n]","url":"m?xwl=examples/controls/chart/data-source/employee"},"events":{"success":"app.slider1.setMaxValue(app.chart1.store.getTotalCount() - 10);"},"children":[],"type":"store","expanded":false},{"configs":{"itemId":"axes"},"children":[{"configs":{"position":"left","title":"休假时长","minimum":"0","maximum":"100","itemId":"leftAxis","type":"numeric","fields":"VACATION_HOURS"},"children":[],"type":"axis","expanded":false},{"configs":{"position":"bottom","title":"姓名","itemId":"bottomAxis","type":"category","fields":"FIRST_NAME"},"children":[],"type":"axis","expanded":true}],"type":"array","expanded":true},{"configs":{"itemId":"series"},"children":[{"configs":{"axis":"left","itemId":"leftSeries","type":"column","xField":"FIRST_NAME","yField":"VACATION_HOURS"},"children":[],"type":"series","expanded":true}],"type":"array","expanded":true}],"type":"chart","expanded":true},{"configs":{"region":"south","itemId":"toolbar1"},"children":[{"configs":{"useTips":"false","itemId":"slider1"},"events":{"change":"Wb.apply(app, {\n  startIndex: newValue,\n  endIndex: newValue + 9\n});\napp.chart1.store.filter();"},"children":[],"type":"slider","expanded":false}],"type":"toolbar","expanded":true}],"type":"viewport","expanded":true}],"type":"module","expanded":true}],"iconCls":""}