我的代码:如何确定一个类型的动态缩放功能的?
let scale = d3.scale.log();
//How to determine that 'scale' variable is a logarithmic scaling function?
scale = d3.scale.ordinal();
//In this case how to determine that 'scale' variable is an ordinal scaling function?
是否有一个尺度函数的一些属性或一些方法,可以帮助我吗? 我需要为了绘制HTML画布API秤特定的轴系此信息。
量均衡器只是功能并没有与规模的功能相关的属性,以确定它是什么样的。也就是说,即使有找到规模类型的方法,您也应该考虑替代方案。你的用例是什么? – Ankit
@Ankit http://stackoverflow.com/questions/35726692/how-to-determine-a-type-of-a-scaling-function-dynamically/35727330?noredirect=1#comment59134027_35727330 –