-
rangeType
String
指示當用戶滑動拇指時應如何呈現直方圖箱。默認情況下,藍色條表示該範圍內包含的數據箱。灰色條表示從範圍中排除的數據箱。這些顏色可以使用includedBarColor 和exclusionBarColor 屬性進行自定義。
此屬性還確定 generateWhereClause() 中生成的 SQL where 子句以用於過濾目的。此處設置的值確定滑塊上允許的值的數量。
有關所有可能值的說明和要求,請參見下表。
value1
指第一個拇指位置的值。value2
指最終拇指位置的值(如果適用)。可能的值 值的數量 Where 子句 equal 1 ${field} = ${value1}
not-equal 1 ${field} <> ${value1}
less-than 1 ${field} < ${value1}
greater-than 1 ${field} > ${value1}
at-most 1 ${field} <= ${value1}
at-least 1 ${field} >= ${value1}
between 2 ${field} BETWEEN ${value1} AND ${value2}
not-between 2 ${field} NOT BETWEEN ${value1} AND ${value2}
可能的值:"equal"|"not-equal"|"less-than"|"greater-than"|"at-most"|"at-least"|"between"|"not-between"
例子:
// renders the histogram so that all bins between // the two handles are shaded with a blue color slider.rangeType = "between"; // filters the layer view based on the configuration // of the slider layerView.filter = { where: slider.generateWhereClause("POPULATION") }
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/widgets/HistogramRangeSlider"], (HistogramRangeSlider) => { /* code goes here */ });
ESM:
import HistogramRangeSlider from "@arcgis/core/widgets/HistogramRangeSlider";
類:
esri/widgets/HistogramRangeSlider
繼承: HistogramRangeSlider > Widget > Accessor
自從:用於 JavaScript 4.12 的 ArcGIS API
用法說明
HistogramRangeSlider.rangeType
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS HistogramRangeSlider.labelFormatFunction用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.container用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.bins用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.excludedBarColor用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.min用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.standardDeviation用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.precision用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.average用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.on用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.classes用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.visible用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.when用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.standardDeviationCount用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.includedBarColor用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.values用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.dataLines用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.max用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.dataLineCreatedFunction用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.generateWhereClause用法及代碼示例
- JavaScript ArcGIS HistogramRangeSlider.barCreatedFunction用法及代碼示例
- JavaScript ArcGIS Histogram.layout用法及代碼示例
- JavaScript ArcGIS Histogram.on用法及代碼示例
- JavaScript ArcGIS Histogram.container用法及代碼示例
- JavaScript ArcGIS Histogram.average用法及代碼示例
- JavaScript ArcGIS Histogram.labelFormatFunction用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 HistogramRangeSlider.rangeType。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。