2015-03-25 91 views
0

我使用cubism.js来显示我的数据,但我的数据没有上限,或者我的数据会有很大变化。我们可以设置cubism.js y轴没有上限吗?

请帮帮我!

div.append("div") 
    .attr("class", "horizon") 
    .call(context.horizon() 
    .height(240) 
    .mode("offset") 
    .colors(["#08519c","#3182bd"]) 
    .title("QPS") 
    .extent([0, ???])); 

回答

0

您可能需要使用Number.MAX_VALUE尝试:

div.append("div") 
    .attr("class", "horizon") 
    .call(context.horizon() 
    .height(240) 
    .mode("offset") 
    .colors(["#08519c","#3182bd"]) 
    .title("QPS") 
    .extent([0, Number.MAX_VALUE])); 
相关问题