如何将Anycharts股票滚动条设置为不移动大小

时间:2019-01-25 08:52:01

标签: anychart

我在js上有一个函数来创建anychart.stock

dataTable = anychart.data.table();
dataTable.addData(json);

price = dataTable.mapAs({'value': 1});  
height = dataTable.mapAs({'value': 2});
weight = dataTable.mapAs({'value': 3});

var pricesChart= chart.plot(0);
    pricesChart.grid().enabled(true);
    pricesChart.grid(1).enabled(true).layout('vertical');
PricePlot = pricesChart.stepLine(price).stroke('#004400');


var heightChart= chart.plot(0);
        heightChart.grid().enabled(true);
        heightChart.grid(1).enabled(true).layout('vertical');
    heightPlot = heightChart.stepLine(height).stroke('#334400');

var weightChart= chart.plot(0);
        weightChart.grid().enabled(true);
        weightChart.grid(1).enabled(true).layout('vertical');
    weightPlot = weightChart.stepLine(weight).stroke('#334400');

显示绘图时,可以看到所有比例尺。看到这张图片: enter image description here

当我将滚动条向右移动时,问题就会出现。它修改了我最后一张图表的比例,导致该图表不可读。见下图: enter image description here

1 个答案:

答案 0 :(得分:0)

我刚刚了解了可视化发生了什么。

问题是,给定一段时间,例如,今年从01-01-2019到31-12-2019,我正在使用三个不同的行来显示信息。

第一行包含从01-01-2019到今天的信息 第二行包含从今天到未来7天的信息 第三阶段包含从7天到31-12-2019的信息。

行不连续的事实正在破坏缩放。