Difference between revisions of "Template:COVID-19 pandemic interactive maps/India/doc"
Jump to navigation
Jump to search
imported>Timbaaa (Add see also) |
imported>Timbaaa (Update with new parameter) |
||
| Line 99: | Line 99: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
| − | " | + | "per-capita": { |
| − | " | + | "description": "Creates per-capita map based on provided base", |
| − | "example": " | + | "example": "1000000", |
| − | " | + | "type": "number", |
| + | "label": "Density" | ||
} | } | ||
}, | }, | ||
| Line 112: | Line 113: | ||
"scale", | "scale", | ||
"color-ramp-type", | "color-ramp-type", | ||
| + | "per-capita", | ||
"padding", | "padding", | ||
"domain-lower-value", | "domain-lower-value", | ||
| Line 117: | Line 119: | ||
"domain-lower-color", | "domain-lower-color", | ||
"domain-upper-color", | "domain-upper-color", | ||
| − | "legend-title | + | "legend-title" |
| − | |||
] | ] | ||
} | } | ||
Latest revision as of 09:20, 9 August 2020
| 40px | This is a documentation subpage for Template:COVID-19 pandemic interactive maps/India. It contains usage information, categories and other content that is not part of the original template page. |
Usage example
{{Template:COVID-19 pandemic interactive maps/India
|data-template = Template:COVID-19 pandemic interactive maps/India/India cases by region
|legend-title = Cases
|domain-upper-value = 5e5
}}
{{Template:COVID-19 pandemic interactive maps/India
|data-template = Template:COVID-19 pandemic interactive maps/India/India deaths by region
|legend-title = Deaths
|color-ramp-type = sqrt
|domain-upper-value = 20000
}}
{{Template:COVID-19 pandemic interactive maps/India
|data-template = Template:COVID-19 pandemic interactive maps/India/India cases by region
|legend-title = Cases per million population
|color-ramp-type = linear
|domain-upper-value = 8000
|per-capita = 1000000
|scale = 0.7
}}
{{Template:COVID-19 pandemic interactive maps/India
|data-template = Template:COVID-19 pandemic interactive maps/India/India deaths by region
|legend-title = Deaths per million population
|color-ramp-type = linear
|domain-upper-value = 250
|per-capita = 1000000
|scale = 0.7
}}
Template parameters
A template for creating interactive data visualizations using maps for COVID-19 pandemic in India
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Region wise data | data-template | Dataset used to set the fill color for regions
| Page | required |
| Title | title | Title for the graph
| String | suggested |
| Scaling coefficient | scale | A percentage value (as a decimal) to resize the map
| Number | optional |
| Color ramp type | color-ramp-type | Type of color ramping on map. Values can be 'linear','log' and 'sqrt'
| String | optional |
| Density | per-capita | Creates per-capita map based on provided base
| Number | optional |
| Padding | padding | no description
| Number | optional |
| Minimum value in domain for map coloring | domain-lower-value | Value at which the coloring will begin
| Number | optional |
| Maximum value in domain for map coloring | domain-upper-value | Value at which the coloring will end
| Number | required |
| Beginning of color gradient | domain-lower-color | no description
| String | optional |
| End of color gradient | domain-upper-color | no description
| String | optional |
| Legend title | legend-title | Title for the map legend
| String | required |