API Reference
JsVectorMapRegionSettings
Settings builder for region coloring (choropleth) to avoid manual scale dictionaries.
Inheritance
- Object
- JsVectorMapRegionSettings
Methods
public JsVectorMapRegionSettings Add(Country country, Int32 level) #JsVectorMapRegionSettingsAdds a region level (1..10). Examples: Add("PL", 10), Add("US", 9).
Parameters
- iso2OrIso3 System.String
- level System.Int32
public JsVectorMapRegionSettings AddRange(IEnumerable<Country> countries, Int32 level) #JsVectorMapRegionSettingsAdds many typed regions with the same level using Country.
Parameters
- countries System.Collections.Generic.IEnumerable{HtmlForgeX.Country}
- level System.Int32
public JsVectorMapRegionSettings Alpha(Double min, Double max) #JsVectorMapRegionSettingsSets alpha range for the generated scale (default 0.1..1.0).
Parameters
- min System.Double
- max System.Double
public JsVectorMapRegionSettings Assign(Country country, TablerColor color) #JsVectorMapRegionSettingsNumeric values keyed by typed country codes.
Parameters
- country HtmlForgeX.Country
- color HtmlForgeX.TablerColor
public JsVectorMapRegionSettings AssignHex(Country country, String hex) #JsVectorMapRegionSettingsAssigns an explicit color to one region using typed Country and hex.
Parameters
- country HtmlForgeX.Country
- hex System.String
public JsVectorMapRegionSettings AssignHex(String iso2, String hex) #JsVectorMapRegionSettingsAssigns an explicit color to one region using ISO string and hex.
Parameters
- iso2 System.String
- hex System.String
public JsVectorMapRegionSettings BaseColor(TablerColor color) #JsVectorMapRegionSettingsSets base color for the generated scale.
Parameters
- color HtmlForgeX.TablerColor
public JsVectorMap End() #JsVectorMapReturns to the root map after applying region coloring.
public JsVectorMap Numeric(IDictionary<String, Double> values, Int32 bins = 10, JsVectorNumericBinMode mode = EqualInterval) #JsVectorMapAssign numeric values and let the builder bin them into levels automatically.
Parameters
- values System.Collections.Generic.IDictionary{System.String,System.Double}
- bins System.Int32 = 10
- mode HtmlForgeX.JsVectorNumericBinMode = EqualInterval
public JsVectorMapRegionSettings Palette(params TablerColor[] colors) #JsVectorMapRegionSettingsUse a discrete palette of Tabler colors instead of an alpha scale.
Parameters
- colors HtmlForgeX.TablerColor[]
public JsVectorMapRegionSettings PaletteHex(params String[] hexColors) #JsVectorMapRegionSettingsUse a discrete palette of custom hex colors (e.g., "#FF0000").
Parameters
- hexColors System.String[]