Merge pull request #81 from CartoDB/equalint

adding equal interval function for consistency
This commit is contained in:
Andy Eschbacher
2015-06-25 11:08:24 -04:00
4 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
WITH data AS (
SELECT array_agg(x::numeric) s FROM generate_series(1,300) x
WHERE x % 5 != 0 AND x % 7 != 0
)
SELECT round(unnest(CDB_EqualIntervalBins(s, 7)),7) FROM data

View File

@@ -0,0 +1,7 @@
43.5714286
86.1428571
128.7142857
171.2857143
213.8571429
256.4285714
299.0000000