Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在d3.js图表中绘制多条y轴线_D3.js - Fatal编程技术网

在d3.js图表中绘制多条y轴线

在d3.js图表中绘制多条y轴线,d3.js,D3.js,我正在d3.js中绘制一条直线,使用以下x轴和y轴阵列: prob = ["0.93", "0.91", "0.89"]; iml = ["0.005", "0.007", "0.0098"]; 如图所示: 如何添加另一个要在y轴上打印的阵列,例如: prob2 = ["0.89", "0.85", "0.5277"]; x轴始终是iml值。您是否在寻找一个?是的,但不清楚我需要如何扩展y.domain?域的范围是根据数据自动确定的。数据数组应该如何构造?没有设置的结

我正在d3.js中绘制一条直线,使用以下x轴和y轴阵列:

    prob = ["0.93", "0.91", "0.89"];
    iml = ["0.005", "0.007", "0.0098"];
如图所示:

如何添加另一个要在y轴上打印的阵列,例如:

    prob2 = ["0.89", "0.85", "0.5277"];

x轴始终是iml值。

您是否在寻找一个?是的,但不清楚我需要如何扩展y.domain?域的范围是根据数据自动确定的。数据数组应该如何构造?没有设置的结构。如果您查看多系列图表的各种示例,您将看到有多种数据格式。你可能会发现这个方法很有用。