Scroll 是否可以在AnyChart表上设置水平滚动条?

Scroll 是否可以在AnyChart表上设置水平滚动条?,scroll,anychart,Scroll,Anychart,我遇到了一个问题,这个表中有太多的数据列,我希望它继续在图形上显示,用户可以选择水平滚动。这可能吗?看看orientation()方法。您可以使用它重新定位滚动条 // change the scroller orientation chart.xScroller().orientation("top"); chart.yScroller().orientation("left"); 要调整滚动条的高度(宽度),请使用height()方法。还有maxHeight()和minHeight()方法

我遇到了一个问题,这个表中有太多的数据列,我希望它继续在图形上显示,用户可以选择水平滚动。这可能吗?

看看orientation()方法。您可以使用它重新定位滚动条

// change the scroller orientation
chart.xScroller().orientation("top");
chart.yScroller().orientation("left");
要调整滚动条的高度(宽度),请使用height()方法。还有maxHeight()和minHeight()方法,它们在调整图表大小时非常有用

// set the bar height
chart.xScroller().maxHeight(35);

这只能通过CSS实现。下面您可以找到如何使用CSS为AnyChart表启用滚动的方法

anychart.onDocumentReady(函数(){
var阶段=空;
//用于公共填充设置的数组
var padding=[0,10,0,10];
//初始创建表
createTable();
//创建带有标题的表
stageHeaders=anychart.graphics.create(“标题”);
//创建独立表
tableHeaders=anychart.standalones.table();
var头=[];
headers.push(['staticheader','staticheader']);
tableHeaders.contents(标题);
tableHeaders.getCol(0)、宽度(100);
tableHeaders.container(stageHeaders.draw();
stageBottom=anychart.graphics.create(“底部”);
//创建独立表
tableBot=anychart.standalones.table();
var轴=[];
轴推动(['Static bottom','Static bottom']);
tableBot.目录(轴);
tableBot.getCol(0)、宽度(100);
tableBot.container(stagebotom.draw();
//创建表
函数createTable(){
如果(阶段!==null){
stage.dispose();
}
stage=anychart.graphics.create(“容器”);
//创建独立表
table=anychart.standalones.table();
var tableContent=[];
push(['Content','Content']);
对于(var j=0;j