D3.js log.rangeRound()函数
log.rangeRound()函数用于将刻度范围设置为指定的值数组,同时它在内部将插值器设置为 interpolatorRound。
句法:
log.rangeRound([range]);
参数:此函数采用上面给出并在下面描述的单个参数。
- [范围]:包含指定域范围的数组。
返回值:此函数不返回任何值。
示例 1:
HTML
GeekforGeeks
log.rangeRound() Function
HTML
GeekforGeeks
log.rangeRound() Function
输出:
示例 2:
HTML
GeekforGeeks
log.rangeRound() Function
输出: