d3's histogram layout expects data in a format like [6, 9, 4, 2, 0, 6, 9] and it creates tidy bins based on your domain, ticks, etc.
確定! 回上一頁