change range filters from non-linear to linear

This commit is contained in:
Bilal Catic
2019-10-13 23:32:09 +02:00
parent 105ed47276
commit 3f72ffba89

View File

@@ -1,12 +1,10 @@
const PRICE_SLIDER_OPTIONS = { const PRICE_SLIDER_OPTIONS = {
start: [50000, 85000], start: [50000, 85000],
range: { range: {
min: [0, 1000], min: [0],
"10%": [20000, 1000], max: [300000]
"35%": [100000, 1000],
"70%": [200000, 10000],
max: [1000000]
}, },
step: 1000,
connect: true, connect: true,
tooltips: true tooltips: true
}; };
@@ -15,10 +13,10 @@ const PRICE_SLIDER_OPTIONS = {
const HOME_SIZE_SLIDER_OPTIONS = { const HOME_SIZE_SLIDER_OPTIONS = {
start: [30, 75], start: [30, 75],
range: { range: {
min: [0, 5], min: [0],
"50%": [100, 10],
max: [400] max: [400]
}, },
step: 5,
connect: true, connect: true,
tooltips: true tooltips: true
}; };
@@ -26,11 +24,10 @@ const HOME_SIZE_SLIDER_OPTIONS = {
const GARDEN_SIZE_SLIDER_OPTIONS = { const GARDEN_SIZE_SLIDER_OPTIONS = {
start: [100, 1000], start: [100, 1000],
range: { range: {
min: [0, 10], min: [0],
"40%": [1000, 100], max: [10000]
"80%": [10000, 100],
max: [100000]
}, },
step: 100,
connect: true, connect: true,
tooltips: true tooltips: true
}; };