Statistics[edit | edit source]
Total confirmed cases, active cases, recoveries and deaths[edit | edit source]
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["totalDeaths", "totalRecoveries", "activeCases", "totalConfirmedCases"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["totalDeaths", "totalRecoveries", "activeCases", "totalConfirmedCases"]} , {"type": "formula", "field": "_yfield", "expr": "max(datum.value, 1)" } , {"type": "filter", "test": "datum._yfield != 0"}
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "log",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["totalDeaths", "totalRecoveries", "activeCases", "totalConfirmedCases"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "sqrt",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Active cases[edit | edit source]
<graph> {
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["activeCases"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Confirmed cases by districts[edit | edit source]
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["chennai"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["chennai"]} , {"type": "formula", "field": "_yfield", "expr": "max(datum.value, 1)" } , {"type": "filter", "test": "datum._yfield != 0"}
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "log",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
"domainMin": 1,
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["chengalpattu", "thiruvallur", "coimbatore","kancheepuram", "cuddalore", "madurai", "salem", "theni", "virudhunagar", "thiruvannamalai", "vellore", "thoothukudi","ranipet","tirunelveli","kanyakumari"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["chengalpattu", "thiruvallur", "coimbatore","kancheepuram", "cuddalore", "madurai", "salem", "theni", "virudhunagar", "thiruvannamalai", "vellore", "thoothukudi","ranipet","tirunelveli","kanyakumari"]} , {"type": "formula", "field": "_yfield", "expr": "max(datum.value, 1)" } , {"type": "filter", "test": "datum._yfield != 0"}
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "log",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
"domainMin": 1,
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["chengalpattu", "thiruvallur", "coimbatore","kancheepuram", "cuddalore", "madurai", "salem", "theni", "virudhunagar", "thiruvannamalai", "vellore", "thoothukudi","ranipet","tirunelveli","kanyakumari"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "sqrt",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
"domainMin": 1,
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["villupuram", "trichy", "thanjavur", "kallakurichi", "dindigul", "pudukottai", "tenkasi", "thiruvarur", "ramanathapuram"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["villupuram", "trichy", "thanjavur", "kallakurichi", "dindigul", "pudukottai", "tenkasi", "thiruvarur", "ramanathapuram"]} , {"type": "formula", "field": "_yfield", "expr": "max(datum.value, 1)" } , {"type": "filter", "test": "datum._yfield != 0"}
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "log",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
"domainMin": 1,
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
{
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["villupuram", "trichy", "thanjavur", "kallakurichi", "dindigul", "pudukottai", "tenkasi", "thiruvarur", "ramanathapuram"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu by districts.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "sqrt",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
"domainMin": 1,
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Case completion percentage[edit | edit source]
<graph> {
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["casecompletionpercentage"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Percentage",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Daily new cases[edit | edit source]
<graph> {
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["newConfirmedCases", "averageNewConfirmedCases"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Daily new recovered[edit | edit source]
New recoveries per day 7-day moving average of new recoveries per day
<graph>{"legends":[],"scales":[{"type":"time","name":"x","domain":{"data":"chart","field":"x"},"range":"width","zero":false},{"clamp":true,"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"domainMin":0,"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#fa9703","#975b02"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"interpolate":{"value":"basis"},"strokeWidth":{"value":2.5}}},"type":"line"}],"from":{"data":"chart","transform":[{"groupby":["series"],"type":"facet"}]}}],"height":400,"axes":[{"type":"x","title":"Date","scale":"x","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"align":{"value":"right"},"angle":{"value":-45},"fill":{"value":"#54595d"}}},"grid":true},{"type":"y","title":"No. of new recoveries","scale":"y","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"number","x":"date"},"type":"json"},"name":"chart","values":[{"y":1,"series":"y1","x":"2020-03-10"},{"y":0,"series":"y1","x":"2020-03-11"},{"y":0,"series":"y1","x":"2020-03-12"},{"y":0,"series":"y1","x":"2020-03-13"},{"y":0,"series":"y1","x":"2020-03-14"},{"y":0,"series":"y1","x":"2020-03-15"},{"y":0,"series":"y1","x":"2020-03-16"},{"y":0,"series":"y1","x":"2020-03-17"},{"y":0,"series":"y1","x":"2020-03-18"},{"y":0,"series":"y1","x":"2020-03-19"},{"y":0,"series":"y1","x":"2020-03-20"},{"y":0,"series":"y1","x":"2020-03-21"},{"y":0,"series":"y1","x":"2020-03-22"},{"y":0,"series":"y1","x":"2020-03-23"},{"y":0,"series":"y1","x":"2020-03-24"},{"y":0,"series":"y1","x":"2020-03-25"},{"y":0,"series":"y1","x":"2020-03-26"},{"y":0,"series":"y1","x":"2020-03-27"},{"y":1,"series":"y1","x":"2020-03-28"},{"y":0,"series":"y1","x":"2020-03-29"},{"y":2,"series":"y1","x":"2020-03-30"},{"y":2,"series":"y1","x":"2020-03-31"},{"y":0,"series":"y1","x":"2020-04-01"},{"y":0,"series":"y1","x":"2020-04-02"},{"y":0,"series":"y1","x":"2020-04-03"},{"y":2,"series":"y1","x":"2020-04-04"},{"y":0,"series":"y1","x":"2020-04-05"},{"y":0,"series":"y1","x":"2020-04-06"},{"y":11,"series":"y1","x":"2020-04-07"},{"y":2,"series":"y1","x":"2020-04-08"},{"y":6,"series":"y1","x":"2020-04-09"},{"y":17,"series":"y1","x":"2020-04-10"},{"y":3,"series":"y1","x":"2020-04-11"},{"y":3,"series":"y1","x":"2020-04-12"},{"y":8,"series":"y1","x":"2020-04-13"},{"y":23,"series":"y1","x":"2020-04-14"},{"y":37,"series":"y1","x":"2020-04-15"},{"y":62,"series":"y1","x":"2020-04-16"},{"y":103,"series":"y1","x":"2020-04-17"},{"y":82,"series":"y1","x":"2020-04-18"},{"y":46,"series":"y1","x":"2020-04-19"},{"y":46,"series":"y1","x":"2020-04-20"},{"y":178,"series":"y1","x":"2020-04-21"},{"y":27,"series":"y1","x":"2020-04-22"},{"y":90,"series":"y1","x":"2020-04-23"},{"y":114,"series":"y1","x":"2020-04-24"},{"y":94,"series":"y1","x":"2020-04-25"},{"y":60,"series":"y1","x":"2020-04-26"},{"y":81,"series":"y1","x":"2020-04-27"},{"y":27,"series":"y1","x":"2020-04-28"},{"y":82,"series":"y1","x":"2020-04-29"},{"y":48,"series":"y1","x":"2020-04-30"},{"y":54,"series":"y1","x":"2020-05-01"},{"y":29,"series":"y1","x":"2020-05-02"},{"y":38,"series":"y1","x":"2020-05-03"},{"y":30,"series":"y1","x":"2020-05-04"},{"y":76,"series":"y1","x":"2020-05-05"},{"y":31,"series":"y1","x":"2020-05-06"},{"y":31,"series":"y1","x":"2020-05-07"},{"y":58,"series":"y1","x":"2020-05-08"},{"y":219,"series":"y1","x":"2020-05-09"},{"y":135,"series":"y1","x":"2020-05-10"},{"y":92,"series":"y1","x":"2020-05-11"},{"y":83,"series":"y1","x":"2020-05-12"},{"y":42,"series":"y1","x":"2020-05-13"},{"y":64,"series":"y1","x":"2020-05-14"},{"y":359,"series":"y1","x":"2020-05-15"},{"y":939,"series":"y1","x":"2020-05-16"},{"y":634,"series":"y1","x":"2020-05-17"},{"y":234,"series":"y1","x":"2020-05-18"},{"y":489,"series":"y1","x":"2020-05-19"},{"y":987,"series":"y1","x":"2020-05-20"},{"y":400,"series":"y1","x":"2020-05-21"},{"y":846,"series":"y1","x":"2020-05-22"},{"y":363,"series":"y1","x":"2020-05-23"},{"y":833,"series":"y1","x":"2020-05-24"},{"y":407,"series":"y1","x":"2020-05-25"},{"y":611,"series":"y1","x":"2020-05-26"},{"y":567,"series":"y1","x":"2020-05-27"},{"y":639,"series":"y1","x":"2020-05-28"},{"y":765,"series":"y1","x":"2020-05-29"},{"y":687,"series":"y1","x":"2020-05-30"},{"y":757,"series":"y1","x":"2020-05-31"},{"y":413,"series":"y1","x":"2020-06-01"},{"y":536,"series":"y1","x":"2020-06-02"},{"y":610,"series":"y1","x":"2020-06-03"},{"y":585,"series":"y1","x":"2020-06-04"},{"y":861,"series":"y1","x":"2020-06-05"},{"y":633,"series":"y1","x":"2020-06-06"},{"y":604,"series":"y1","x":"2020-06-07"},{"y":528,"series":"y1","x":"2020-06-08"},{"y":798,"series":"y1","x":"2020-06-09"},{"y":1008,"series":"y1","x":"2020-06-10"},{"y":1372,"series":"y1","x":"2020-06-11"},{"y":1342,"series":"y1","x":"2020-06-12"},{"y":1362,"series":"y1","x":"2020-06-13"},{"y":1138,"series":"y1","x":"2020-06-14"},{"y":797,"series":"y1","x":"2020-06-15"},{"y":1438,"series":"y1","x":"2020-06-16"},{"y":842,"series":"y1","x":"2020-06-17"},{"y":1017,"series":"y1","x":"2020-06-18"},{"y":1630,"series":"y1","x":"2020-06-19"},{"y":1045,"series":"y1","x":"2020-06-20"},{"y":1438,"series":"y1","x":"2020-06-21"},{"y":1358,"series":"y1","x":"2020-06-22"},{"y":1227,"series":"y1","x":"2020-06-23"},{"y":2424,"series":"y1","x":"2020-06-24"},{"y":2236,"series":"y1","x":"2020-06-25"},{"y":1358,"series":"y1","x":"2020-06-26"},{"y":2737,"series":"y1","x":"2020-06-27"},{"y":1443,"series":"y1","x":"2020-06-28"},{"y":2212,"series":"y1","x":"2020-06-29"},{"y":2325,"series":"y1","x":"2020-06-30"},{"y":2852,"series":"y1","x":"2020-07-01"},{"y":3095,"series":"y1","x":"2020-07-02"},{"y":2357,"series":"y1","x":"2020-07-03"},{"y":2214,"series":"y1","x":"2020-07-04"},{"y":2186,"series":"y1","x":"2020-07-05"},{"y":3793,"series":"y1","x":"2020-07-06"},{"y":4545,"series":"y1","x":"2020-07-07"},{"y":3051,"series":"y1","x":"2020-07-08"},{"y":3994,"series":"y1","x":"2020-07-09"},{"y":4073,"series":"y1","x":"2020-07-10"},{"y":3681,"series":"y1","x":"2020-07-11"},{"y":3617,"series":"y1","x":"2020-07-12"},{"y":3035,"series":"y1","x":"2020-07-13"},{"y":4743,"series":"y1","x":"2020-07-14"},{"y":5000,"series":"y1","x":"2020-07-15"},{"y":5106,"series":"y1","x":"2020-07-16"},{"y":1,"series":"y2","x":"2020-03-10"},{"y":0.5,"series":"y2","x":"2020-03-11"},{"y":0.33,"series":"y2","x":"2020-03-12"},{"y":0.25,"series":"y2","x":"2020-03-13"},{"y":0.2,"series":"y2","x":"2020-03-14"},{"y":0.17,"series":"y2","x":"2020-03-15"},{"y":0.14,"series":"y2","x":"2020-03-16"},{"y":0,"series":"y2","x":"2020-03-17"},{"y":0,"series":"y2","x":"2020-03-18"},{"y":0,"series":"y2","x":"2020-03-19"},{"y":0,"series":"y2","x":"2020-03-20"},{"y":0,"series":"y2","x":"2020-03-21"},{"y":0,"series":"y2","x":"2020-03-22"},{"y":0,"series":"y2","x":"2020-03-23"},{"y":0,"series":"y2","x":"2020-03-24"},{"y":0,"series":"y2","x":"2020-03-25"},{"y":0,"series":"y2","x":"2020-03-26"},{"y":0,"series":"y2","x":"2020-03-27"},{"y":0.14,"series":"y2","x":"2020-03-28"},{"y":0.14,"series":"y2","x":"2020-03-29"},{"y":0.43,"series":"y2","x":"2020-03-30"},{"y":0.71,"series":"y2","x":"2020-03-31"},{"y":0.71,"series":"y2","x":"2020-04-01"},{"y":0.71,"series":"y2","x":"2020-04-02"},{"y":0.71,"series":"y2","x":"2020-04-03"},{"y":0.86,"series":"y2","x":"2020-04-04"},{"y":0.86,"series":"y2","x":"2020-04-05"},{"y":0.57,"series":"y2","x":"2020-04-06"},{"y":1.86,"series":"y2","x":"2020-04-07"},{"y":2.14,"series":"y2","x":"2020-04-08"},{"y":3,"series":"y2","x":"2020-04-09"},{"y":5.43,"series":"y2","x":"2020-04-10"},{"y":5.57,"series":"y2","x":"2020-04-11"},{"y":6,"series":"y2","x":"2020-04-12"},{"y":7.14,"series":"y2","x":"2020-04-13"},{"y":8.86,"series":"y2","x":"2020-04-14"},{"y":13.86,"series":"y2","x":"2020-04-15"},{"y":21.86,"series":"y2","x":"2020-04-16"},{"y":34.14,"series":"y2","x":"2020-04-17"},{"y":45.43,"series":"y2","x":"2020-04-18"},{"y":51.57,"series":"y2","x":"2020-04-19"},{"y":57,"series":"y2","x":"2020-04-20"},{"y":79.14,"series":"y2","x":"2020-04-21"},{"y":77.71,"series":"y2","x":"2020-04-22"},{"y":81.71,"series":"y2","x":"2020-04-23"},{"y":83.29,"series":"y2","x":"2020-04-24"},{"y":85,"series":"y2","x":"2020-04-25"},{"y":87,"series":"y2","x":"2020-04-26"},{"y":92,"series":"y2","x":"2020-04-27"},{"y":70.43,"series":"y2","x":"2020-04-28"},{"y":78.29,"series":"y2","x":"2020-04-29"},{"y":72.29,"series":"y2","x":"2020-04-30"},{"y":63.71,"series":"y2","x":"2020-05-01"},{"y":54.43,"series":"y2","x":"2020-05-02"},{"y":51.29,"series":"y2","x":"2020-05-03"},{"y":44,"series":"y2","x":"2020-05-04"},{"y":51,"series":"y2","x":"2020-05-05"},{"y":43.71,"series":"y2","x":"2020-05-06"},{"y":41.29,"series":"y2","x":"2020-05-07"},{"y":41.86,"series":"y2","x":"2020-05-08"},{"y":69,"series":"y2","x":"2020-05-09"},{"y":82.86,"series":"y2","x":"2020-05-10"},{"y":91.71,"series":"y2","x":"2020-05-11"},{"y":92.71,"series":"y2","x":"2020-05-12"},{"y":94.29,"series":"y2","x":"2020-05-13"},{"y":99,"series":"y2","x":"2020-05-14"},{"y":142,"series":"y2","x":"2020-05-15"},{"y":244.86,"series":"y2","x":"2020-05-16"},{"y":316.14,"series":"y2","x":"2020-05-17"},{"y":336.43,"series":"y2","x":"2020-05-18"},{"y":394.43,"series":"y2","x":"2020-05-19"},{"y":529.43,"series":"y2","x":"2020-05-20"},{"y":577.43,"series":"y2","x":"2020-05-21"},{"y":647,"series":"y2","x":"2020-05-22"},{"y":564.71,"series":"y2","x":"2020-05-23"},{"y":593.14,"series":"y2","x":"2020-05-24"},{"y":617.86,"series":"y2","x":"2020-05-25"},{"y":635.29,"series":"y2","x":"2020-05-26"},{"y":575.29,"series":"y2","x":"2020-05-27"},{"y":609.43,"series":"y2","x":"2020-05-28"},{"y":597.86,"series":"y2","x":"2020-05-29"},{"y":644.14,"series":"y2","x":"2020-05-30"},{"y":633.29,"series":"y2","x":"2020-05-31"},{"y":634.14,"series":"y2","x":"2020-06-01"},{"y":623.43,"series":"y2","x":"2020-06-02"},{"y":629.57,"series":"y2","x":"2020-06-03"},{"y":621.86,"series":"y2","x":"2020-06-04"},{"y":635.57,"series":"y2","x":"2020-06-05"},{"y":627.86,"series":"y2","x":"2020-06-06"},{"y":606,"series":"y2","x":"2020-06-07"},{"y":622.43,"series":"y2","x":"2020-06-08"},{"y":659.86,"series":"y2","x":"2020-06-09"},{"y":716.71,"series":"y2","x":"2020-06-10"},{"y":829.14,"series":"y2","x":"2020-06-11"},{"y":897.86,"series":"y2","x":"2020-06-12"},{"y":1002,"series":"y2","x":"2020-06-13"},{"y":1078.29,"series":"y2","x":"2020-06-14"},{"y":1116.71,"series":"y2","x":"2020-06-15"},{"y":1208.14,"series":"y2","x":"2020-06-16"},{"y":1184.43,"series":"y2","x":"2020-06-17"},{"y":1133.71,"series":"y2","x":"2020-06-18"},{"y":1174.86,"series":"y2","x":"2020-06-19"},{"y":1129.57,"series":"y2","x":"2020-06-20"},{"y":1172.43,"series":"y2","x":"2020-06-21"},{"y":1252.57,"series":"y2","x":"2020-06-22"},{"y":1222.43,"series":"y2","x":"2020-06-23"},{"y":1448.43,"series":"y2","x":"2020-06-24"},{"y":1622.57,"series":"y2","x":"2020-06-25"},{"y":1583.71,"series":"y2","x":"2020-06-26"},{"y":1825.43,"series":"y2","x":"2020-06-27"},{"y":1826.14,"series":"y2","x":"2020-06-28"},{"y":1948.14,"series":"y2","x":"2020-06-29"},{"y":2105,"series":"y2","x":"2020-06-30"},{"y":2166.14,"series":"y2","x":"2020-07-01"},{"y":2288.86,"series":"y2","x":"2020-07-02"},{"y":2431.57,"series":"y2","x":"2020-07-03"},{"y":2356.86,"series":"y2","x":"2020-07-04"},{"y":2463,"series":"y2","x":"2020-07-05"},{"y":2688.86,"series":"y2","x":"2020-07-06"},{"y":3006,"series":"y2","x":"2020-07-07"},{"y":3034.43,"series":"y2","x":"2020-07-08"},{"y":3162.86,"series":"y2","x":"2020-07-09"},{"y":3408,"series":"y2","x":"2020-07-10"},{"y":3617.57,"series":"y2","x":"2020-07-11"},{"y":3822,"series":"y2","x":"2020-07-12"},{"y":3713.71,"series":"y2","x":"2020-07-13"},{"y":3742,"series":"y2","x":"2020-07-14"},{"y":4020.43,"series":"y2","x":"2020-07-15"},{"y":4179.29,"series":"y2","x":"2020-07-16"}]}],"width":650}</graph>
Daily new deaths[edit | edit source]
<graph> {
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["newDeaths", "averageNewDeaths"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 cases in Tamil Nadu.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Note: On 22 July, 444 previous deaths were added to Chennai district after reconciliation; which are not included in the chart.[1]
Daily new cases by type of spread[edit | edit source]
Primary cases
Cluster cases
Travel Primary cases
Travel Contact cases
Local Contact cases
Inter-state Return cases
<graph>{"legends":[],"scales":[{"type":"ordinal","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"range":"width","nice":true},{"clamp":true,"type":"linear","name":"y","domain":{"data":"stats","field":"sum_y"},"domainMin":0,"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#ffcc33","#ba766a","#ff6600","#adffe6","#990099","#f7b6d2"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"layout_start"},"x":{"scale":"x","field":"x"},"y2":{"scale":"y","field":"layout_end"},"width":{"scale":"x","offset":-1,"band":true},"fill":{"scale":"color","field":"series"}}},"type":"rect"},{"properties":{"enter":{"baseline":{"value":"middle"},"align":{"value":"right"},"text":{"field":"y"},"y":{"scale":"y","offset":4,"field":"layout_start"},"dy":{"scale":"x","mult":0.5,"band":true},"x":{"scale":"x","field":"x"},"angle":{"value":-90},"fontSize":{"value":11},"fill":{"value":"white"}}},"type":"text"}],"from":{"data":"chart","transform":[{"field":"y","type":"stack","sortby":["-_id"],"groupby":["x"]},{"groupby":["series"],"type":"facet"}]}}],"height":400,"axes":[{"type":"x","title":"Date","scale":"x","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"align":{"value":"right"},"angle":{"value":-90},"fill":{"value":"#54595d"}}},"grid":true},{"type":"y","title":"New cases","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"integer","x":"string"},"type":"json"},"name":"chart","values":[{"y":0,"series":"y1","x":"07 Mar"},{"y":0,"series":"y1","x":"."},{"y":1,"series":"y1","x":"18 Mar"},{"y":0,"series":"y1","x":"19 Mar"},{"y":0,"series":"y1","x":"20 Mar"},{"y":0,"series":"y1","x":"21 Mar"},{"y":0,"series":"y1","x":"22 Mar"},{"y":0,"series":"y1","x":"23 Mar"},{"y":1,"series":"y1","x":"24 Mar"},{"y":1,"series":"y1","x":"25 Mar"},{"y":0,"series":"y1","x":"26 Mar"},{"y":6,"series":"y1","x":"27 Mar"},{"y":1,"series":"y1","x":"28 Mar"},{"y":5,"series":"y1","x":"29 Mar"},{"y":2,"series":"y1","x":"30 Mar"},{"y":7,"series":"y1","x":"31 Mar"},{"y":8,"series":"y1","x":"1 Apr"},{"y":1,"series":"y1","x":"2 Apr"},{"y":1,"series":"y1","x":"3 Apr"},{"y":1,"series":"y1","x":"4 Apr"},{"y":1,"series":"y1","x":"5 Apr"},{"y":3,"series":"y1","x":"6 Apr"},{"y":6,"series":"y1","x":"7 Apr"},{"y":6,"series":"y1","x":"8 Apr"},{"y":12,"series":"y1","x":"9 Apr"},{"y":7,"series":"y1","x":"10 Apr"},{"y":11,"series":"y1","x":"11 Apr"},{"y":0,"series":"y1","x":"12 Apr"},{"y":0,"series":"y1","x":"13 Apr"},{"y":0,"series":"y1","x":"14 Apr"},{"y":4,"series":"y1","x":"15 Apr"},{"y":7,"series":"y1","x":"16 Apr"},{"y":15,"series":"y1","x":"17 Apr"},{"y":0,"series":"y1","x":"18 Apr"},{"y":13,"series":"y1","x":"19 Apr"},{"y":12,"series":"y1","x":"20 Apr"},{"y":5,"series":"y1","x":"21 Apr"},{"y":3,"series":"y1","x":"22 Apr"},{"y":17,"series":"y1","x":"23 Apr"},{"y":13,"series":"y1","x":"24 Apr"},{"y":8,"series":"y1","x":"25 Apr"},{"y":13,"series":"y1","x":"26 Apr"},{"y":6,"series":"y1","x":"27 Apr"},{"y":18,"series":"y1","x":"28 Apr"},{"y":37,"series":"y1","x":"29 Apr"},{"y":34,"series":"y1","x":"30 Apr"},{"y":94,"series":"y1","x":"1 May"},{"y":37,"series":"y1","x":"2 May"},{"y":37,"series":"y1","x":"3 May"},{"y":35,"series":"y1","x":"4 May"},{"y":0,"series":"y1","x":"5 May"},{"y":0,"series":"y1","x":"6 May"},{"y":0,"series":"y1","x":"7 May"},{"y":0,"series":"y1","x":"8 May"},{"y":0,"series":"y1","x":"9 May"},{"y":0,"series":"y1","x":"10 May"},{"y":0,"series":"y1","x":"11 May"},{"y":0,"series":"y1","x":"12 May"},{"y":0,"series":"y1","x":"13 May"},{"y":0,"series":"y1","x":"14 May"},{"y":0,"series":"y1","x":"15 May"},{"y":0,"series":"y1","x":"16 May"},{"y":0,"series":"y1","x":"17 May"},{"y":0,"series":"y1","x":"18 May"},{"y":0,"series":"y1","x":"19 May"},{"y":0,"series":"y1","x":"20 May"},{"y":0,"series":"y1","x":"21 May"},{"y":0,"series":"y1","x":"22 May"},{"y":0,"series":"y1","x":"23 May"},{"y":0,"series":"y1","x":"24 May"},{"y":0,"series":"y1","x":"25 May"},{"y":0,"series":"y1","x":"26 May"},{"y":0,"series":"y1","x":"27 May"},{"y":0,"series":"y1","x":"28 May"},{"y":0,"series":"y1","x":"29 May"},{"y":0,"series":"y2","x":"07 Mar"},{"y":0,"series":"y2","x":"."},{"y":0,"series":"y2","x":"18 Mar"},{"y":0,"series":"y2","x":"19 Mar"},{"y":0,"series":"y2","x":"20 Mar"},{"y":0,"series":"y2","x":"21 Mar"},{"y":0,"series":"y2","x":"22 Mar"},{"y":0,"series":"y2","x":"23 Mar"},{"y":0,"series":"y2","x":"24 Mar"},{"y":0,"series":"y2","x":"25 Mar"},{"y":0,"series":"y2","x":"26 Mar"},{"y":0,"series":"y2","x":"27 Mar"},{"y":0,"series":"y2","x":"28 Mar"},{"y":0,"series":"y2","x":"29 Mar"},{"y":0,"series":"y2","x":"30 Mar"},{"y":50,"series":"y2","x":"31 Mar"},{"y":110,"series":"y2","x":"1 Apr"},{"y":74,"series":"y2","x":"2 Apr"},{"y":100,"series":"y2","x":"3 Apr"},{"y":69,"series":"y2","x":"4 Apr"},{"y":85,"series":"y2","x":"5 Apr"},{"y":47,"series":"y2","x":"6 Apr"},{"y":63,"series":"y2","x":"7 Apr"},{"y":42,"series":"y2","x":"8 Apr"},{"y":84,"series":"y2","x":"9 Apr"},{"y":70,"series":"y2","x":"10 Apr"},{"y":47,"series":"y2","x":"11 Apr"},{"y":0,"series":"y2","x":"12 Apr"},{"y":91,"series":"y2","x":"13 Apr"},{"y":21,"series":"y2","x":"14 Apr"},{"y":34,"series":"y2","x":"15 Apr"},{"y":0,"series":"y2","x":"16 Apr"},{"y":0,"series":"y2","x":"17 Apr"},{"y":0,"series":"y2","x":"18 Apr"},{"y":0,"series":"y2","x":"19 Apr"},{"y":0,"series":"y2","x":"20 Apr"},{"y":0,"series":"y2","x":"21 Apr"},{"y":0,"series":"y2","x":"22 Apr"},{"y":0,"series":"y2","x":"23 Apr"},{"y":0,"series":"y2","x":"24 Apr"},{"y":0,"series":"y2","x":"25 Apr"},{"y":0,"series":"y2","x":"26 Apr"},{"y":0,"series":"y2","x":"27 Apr"},{"y":0,"series":"y2","x":"28 Apr"},{"y":0,"series":"y2","x":"29 Apr"},{"y":0,"series":"y2","x":"30 Apr"},{"y":0,"series":"y2","x":"1 May"},{"y":0,"series":"y2","x":"2 May"},{"y":0,"series":"y2","x":"3 May"},{"y":0,"series":"y2","x":"4 May"},{"y":0,"series":"y2","x":"5 May"},{"y":0,"series":"y2","x":"6 May"},{"y":0,"series":"y2","x":"7 May"},{"y":0,"series":"y2","x":"8 May"},{"y":0,"series":"y2","x":"9 May"},{"y":0,"series":"y2","x":"10 May"},{"y":0,"series":"y2","x":"11 May"},{"y":0,"series":"y2","x":"12 May"},{"y":0,"series":"y2","x":"13 May"},{"y":0,"series":"y2","x":"14 May"},{"y":0,"series":"y2","x":"15 May"},{"y":0,"series":"y2","x":"16 May"},{"y":0,"series":"y2","x":"17 May"},{"y":0,"series":"y2","x":"18 May"},{"y":0,"series":"y2","x":"19 May"},{"y":0,"series":"y2","x":"20 May"},{"y":0,"series":"y2","x":"21 May"},{"y":1,"series":"y3","x":"07 Mar"},{"y":0,"series":"y3","x":"."},{"y":0,"series":"y3","x":"18 Mar"},{"y":0,"series":"y3","x":"19 Mar"},{"y":2,"series":"y3","x":"20 Mar"},{"y":3,"series":"y3","x":"21 Mar"},{"y":3,"series":"y3","x":"22 Mar"},{"y":2,"series":"y3","x":"23 Mar"},{"y":5,"series":"y3","x":"24 Mar"},{"y":5,"series":"y3","x":"25 Mar"},{"y":2,"series":"y3","x":"26 Mar"},{"y":0,"series":"y3","x":"27 Mar"},{"y":3,"series":"y3","x":"28 Mar"},{"y":0,"series":"y3","x":"29 Mar"},{"y":0,"series":"y3","x":"30 Mar"},{"y":0,"series":"y3","x":"31 Mar"},{"y":0,"series":"y3","x":"1 Apr"},{"y":0,"series":"y3","x":"2 Apr"},{"y":1,"series":"y3","x":"3 Apr"},{"y":0,"series":"y3","x":"4 Apr"},{"y":0,"series":"y3","x":"5 Apr"},{"y":0,"series":"y3","x":"6 Apr"},{"y":0,"series":"y3","x":"7 Apr"},{"y":0,"series":"y3","x":"8 Apr"},{"y":0,"series":"y3","x":"9 Apr"},{"y":0,"series":"y3","x":"10 Apr"},{"y":0,"series":"y3","x":"11 Apr"},{"y":16,"series":"y3","x":"12 Apr"},{"y":0,"series":"y3","x":"13 Apr"},{"y":1,"series":"y3","x":"14 Apr"},{"y":0,"series":"y3","x":"15 Apr"},{"y":0,"series":"y3","x":"16 Apr"},{"y":0,"series":"y3","x":"17 Apr"},{"y":0,"series":"y3","x":"18 Apr"},{"y":0,"series":"y3","x":"19 Apr"},{"y":0,"series":"y3","x":"20 Apr"},{"y":0,"series":"y3","x":"21 Apr"},{"y":0,"series":"y3","x":"22 Apr"},{"y":0,"series":"y3","x":"23 Apr"},{"y":0,"series":"y3","x":"24 Apr"},{"y":0,"series":"y3","x":"25 Apr"},{"y":0,"series":"y3","x":"26 Apr"},{"y":0,"series":"y3","x":"27 Apr"},{"y":0,"series":"y3","x":"28 Apr"},{"y":0,"series":"y3","x":"29 Apr"},{"y":0,"series":"y3","x":"30 Apr"},{"y":0,"series":"y3","x":"1 May"},{"y":0,"series":"y3","x":"2 May"},{"y":0,"series":"y3","x":"3 May"},{"y":0,"series":"y3","x":"4 May"},{"y":0,"series":"y3","x":"5 May"},{"y":0,"series":"y3","x":"6 May"},{"y":0,"series":"y3","x":"7 May"},{"y":0,"series":"y3","x":"8 May"},{"y":0,"series":"y3","x":"9 May"},{"y":0,"series":"y3","x":"10 May"},{"y":0,"series":"y3","x":"11 May"},{"y":0,"series":"y3","x":"12 May"},{"y":0,"series":"y3","x":"13 May"},{"y":0,"series":"y3","x":"14 May"},{"y":6,"series":"y3","x":"15 May"},{"y":4,"series":"y3","x":"16 May"},{"y":0,"series":"y3","x":"17 May"},{"y":0,"series":"y3","x":"18 May"},{"y":37,"series":"y3","x":"19 May"},{"y":0,"series":"y3","x":"20 May"},{"y":7,"series":"y3","x":"21 May"},{"y":1,"series":"y3","x":"22 May"},{"y":12,"series":"y3","x":"23 May"},{"y":2,"series":"y3","x":"24 May"},{"y":0,"series":"y3","x":"25 May"},{"y":5,"series":"y3","x":"26 May"},{"y":0,"series":"y3","x":"27 May"},{"y":0,"series":"y3","x":"28 May"},{"y":0,"series":"y3","x":"29 May"},{"y":3,"series":"y3","x":"30 May"},{"y":3,"series":"y3","x":"31 May"},{"y":0,"series":"y3","x":"01 June"},{"y":0,"series":"y4","x":"07 Mar"},{"y":0,"series":"y4","x":"."},{"y":0,"series":"y4","x":"18 Mar"},{"y":0,"series":"y4","x":"19 Mar"},{"y":0,"series":"y4","x":"20 Mar"},{"y":0,"series":"y4","x":"21 Mar"},{"y":0,"series":"y4","x":"22 Mar"},{"y":1,"series":"y4","x":"23 Mar"},{"y":0,"series":"y4","x":"24 Mar"},{"y":2,"series":"y4","x":"25 Mar"},{"y":1,"series":"y4","x":"26 Mar"},{"y":3,"series":"y4","x":"27 Mar"},{"y":0,"series":"y4","x":"28 Mar"},{"y":3,"series":"y4","x":"29 Mar"},{"y":15,"series":"y4","x":"30 Mar"},{"y":0,"series":"y4","x":"31 Mar"},{"y":0,"series":"y4","x":"1 Apr"},{"y":0,"series":"y4","x":"2 Apr"},{"y":0,"series":"y4","x":"3 Apr"},{"y":4,"series":"y4","x":"4 Apr"},{"y":0,"series":"y4","x":"5 Apr"},{"y":0,"series":"y4","x":"6 Apr"},{"y":0,"series":"y4","x":"7 Apr"},{"y":0,"series":"y4","x":"8 Apr"},{"y":0,"series":"y4","x":"9 Apr"},{"y":0,"series":"y4","x":"10 Apr"},{"y":0,"series":"y4","x":"11 Apr"},{"y":0,"series":"y4","x":"12 Apr"},{"y":0,"series":"y4","x":"13 Apr"},{"y":0,"series":"y4","x":"14 Apr"},{"y":0,"series":"y4","x":"15 Apr"},{"y":0,"series":"y4","x":"16 Apr"},{"y":0,"series":"y4","x":"17 Apr"},{"y":0,"series":"y4","x":"18 Apr"},{"y":0,"series":"y4","x":"19 Apr"},{"y":0,"series":"y4","x":"20 Apr"},{"y":0,"series":"y4","x":"21 Apr"},{"y":0,"series":"y4","x":"22 Apr"},{"y":0,"series":"y4","x":"23 Apr"},{"y":0,"series":"y4","x":"24 Apr"},{"y":0,"series":"y4","x":"25 Apr"},{"y":0,"series":"y4","x":"26 Apr"},{"y":0,"series":"y4","x":"27 Apr"},{"y":0,"series":"y4","x":"28 Apr"},{"y":0,"series":"y4","x":"29 Apr"},{"y":0,"series":"y4","x":"30 Apr"},{"y":0,"series":"y4","x":"1 May"},{"y":0,"series":"y4","x":"2 May"},{"y":0,"series":"y4","x":"3 May"},{"y":0,"series":"y4","x":"4 May"},{"y":0,"series":"y4","x":"5 May"},{"y":0,"series":"y4","x":"6 May"},{"y":0,"series":"y4","x":"7 May"},{"y":0,"series":"y4","x":"8 May"},{"y":0,"series":"y4","x":"9 May"},{"y":0,"series":"y4","x":"10 May"},{"y":0,"series":"y4","x":"11 May"},{"y":0,"series":"y4","x":"12 May"},{"y":0,"series":"y4","x":"13 May"},{"y":0,"series":"y4","x":"14 May"},{"y":0,"series":"y4","x":"15 May"},{"y":0,"series":"y4","x":"16 May"},{"y":0,"series":"y4","x":"17 May"},{"y":0,"series":"y4","x":"18 May"},{"y":0,"series":"y4","x":"19 May"},{"y":0,"series":"y4","x":"20 May"},{"y":0,"series":"y4","x":"21 May"},{"y":0,"series":"y4","x":"22 May"},{"y":0,"series":"y5","x":"07 Mar"},{"y":0,"series":"y5","x":"."},{"y":0,"series":"y5","x":"18 Mar"},{"y":0,"series":"y5","x":"19 Mar"},{"y":0,"series":"y5","x":"20 Mar"},{"y":0,"series":"y5","x":"21 Mar"},{"y":0,"series":"y5","x":"22 Mar"},{"y":0,"series":"y5","x":"23 Mar"},{"y":0,"series":"y5","x":"24 Mar"},{"y":0,"series":"y5","x":"25 Mar"},{"y":0,"series":"y5","x":"26 Mar"},{"y":0,"series":"y5","x":"27 Mar"},{"y":0,"series":"y5","x":"28 Mar"},{"y":0,"series":"y5","x":"29 Mar"},{"y":0,"series":"y5","x":"30 Mar"},{"y":0,"series":"y5","x":"31 Mar"},{"y":0,"series":"y5","x":"1 Apr"},{"y":0,"series":"y5","x":"2 Apr"},{"y":0,"series":"y5","x":"3 Apr"},{"y":0,"series":"y5","x":"4 Apr"},{"y":0,"series":"y5","x":"5 Apr"},{"y":0,"series":"y5","x":"6 Apr"},{"y":0,"series":"y5","x":"7 Apr"},{"y":0,"series":"y5","x":"8 Apr"},{"y":0,"series":"y5","x":"9 Apr"},{"y":0,"series":"y5","x":"10 Apr"},{"y":0,"series":"y5","x":"11 Apr"},{"y":90,"series":"y5","x":"12 Apr"},{"y":7,"series":"y5","x":"13 Apr"},{"y":9,"series":"y5","x":"14 Apr"},{"y":0,"series":"y5","x":"15 Apr"},{"y":18,"series":"y5","x":"16 Apr"},{"y":41,"series":"y5","x":"17 Apr"},{"y":49,"series":"y5","x":"18 Apr"},{"y":92,"series":"y5","x":"19 Apr"},{"y":31,"series":"y5","x":"20 Apr"},{"y":71,"series":"y5","x":"21 Apr"},{"y":30,"series":"y5","x":"22 Apr"},{"y":37,"series":"y5","x":"23 Apr"},{"y":59,"series":"y5","x":"24 Apr"},{"y":58,"series":"y5","x":"25 Apr"},{"y":51,"series":"y5","x":"26 Apr"},{"y":46,"series":"y5","x":"27 Apr"},{"y":103,"series":"y5","x":"28 Apr"},{"y":67,"series":"y5","x":"29 Apr"},{"y":127,"series":"y5","x":"30 Apr"},{"y":109,"series":"y5","x":"1 May"},{"y":194,"series":"y5","x":"2 May"},{"y":229,"series":"y5","x":"3 May"},{"y":492,"series":"y5","x":"4 May"},{"y":508,"series":"y5","x":"5 May"},{"y":771,"series":"y5","x":"6 May"},{"y":581,"series":"y5","x":"7 May"},{"y":600,"series":"y5","x":"8 May"},{"y":526,"series":"y5","x":"9 May"},{"y":669,"series":"y5","x":"10 May"},{"y":798,"series":"y5","x":"11 May"},{"y":716,"series":"y5","x":"12 May"},{"y":509,"series":"y5","x":"13 May"},{"y":447,"series":"y5","x":"14 May"},{"y":385,"series":"y5","x":"15 May"},{"y":384,"series":"y5","x":"16 May"},{"y":558,"series":"y5","x":"17 May"},{"y":490,"series":"y5","x":"18 May"},{"y":601,"series":"y5","x":"19 May"},{"y":660,"series":"y5","x":"20 May"},{"y":689,"series":"y5","x":"21 May"},{"y":694,"series":"y5","x":"22 May"},{"y":710,"series":"y5","x":"23 May"},{"y":718,"series":"y5","x":"24 May"},{"y":712,"series":"y5","x":"25 May"},{"y":592,"series":"y5","x":"26 May"},{"y":817,"series":"y5","x":"27 May"},{"y":710,"series":"y5","x":"28 May"},{"y":733,"series":"y5","x":"29 May"},{"y":856,"series":"y5","x":"30 May"},{"y":1054,"series":"y5","x":"31 May"},{"y":1112,"series":"y5","x":"01 June"},{"y":0,"series":"y6","x":"07 Mar"},{"y":0,"series":"y6","x":"."},{"y":0,"series":"y6","x":"18 Mar"},{"y":0,"series":"y6","x":"19 Mar"},{"y":0,"series":"y6","x":"20 Mar"},{"y":0,"series":"y6","x":"21 Mar"},{"y":0,"series":"y6","x":"22 Mar"},{"y":0,"series":"y6","x":"23 Mar"},{"y":0,"series":"y6","x":"24 Mar"},{"y":0,"series":"y6","x":"25 Mar"},{"y":0,"series":"y6","x":"26 Mar"},{"y":0,"series":"y6","x":"27 Mar"},{"y":0,"series":"y6","x":"28 Mar"},{"y":0,"series":"y6","x":"29 Mar"},{"y":0,"series":"y6","x":"30 Mar"},{"y":0,"series":"y6","x":"31 Mar"},{"y":0,"series":"y6","x":"1 Apr"},{"y":0,"series":"y6","x":"2 Apr"},{"y":0,"series":"y6","x":"3 Apr"},{"y":0,"series":"y6","x":"4 Apr"},{"y":0,"series":"y6","x":"5 Apr"},{"y":0,"series":"y6","x":"6 Apr"},{"y":0,"series":"y6","x":"7 Apr"},{"y":0,"series":"y6","x":"8 Apr"},{"y":0,"series":"y6","x":"9 Apr"},{"y":0,"series":"y6","x":"10 Apr"},{"y":0,"series":"y6","x":"11 Apr"},{"y":0,"series":"y6","x":"12 Apr"},{"y":0,"series":"y6","x":"13 Apr"},{"y":0,"series":"y6","x":"14 Apr"},{"y":0,"series":"y6","x":"15 Apr"},{"y":0,"series":"y6","x":"16 Apr"},{"y":0,"series":"y6","x":"17 Apr"},{"y":0,"series":"y6","x":"18 Apr"},{"y":0,"series":"y6","x":"19 Apr"},{"y":0,"series":"y6","x":"20 Apr"},{"y":0,"series":"y6","x":"21 Apr"},{"y":0,"series":"y6","x":"22 Apr"},{"y":0,"series":"y6","x":"23 Apr"},{"y":0,"series":"y6","x":"24 Apr"},{"y":0,"series":"y6","x":"25 Apr"},{"y":0,"series":"y6","x":"26 Apr"},{"y":0,"series":"y6","x":"27 Apr"},{"y":0,"series":"y6","x":"28 Apr"},{"y":0,"series":"y6","x":"29 Apr"},{"y":0,"series":"y6","x":"30 Apr"},{"y":0,"series":"y6","x":"1 May"},{"y":0,"series":"y6","x":"2 May"},{"y":0,"series":"y6","x":"3 May"},{"y":0,"series":"y6","x":"4 May"},{"y":0,"series":"y6","x":"5 May"},{"y":0,"series":"y6","x":"6 May"},{"y":0,"series":"y6","x":"7 May"},{"y":0,"series":"y6","x":"8 May"},{"y":0,"series":"y6","x":"9 May"},{"y":0,"series":"y6","x":"10 May"},{"y":0,"series":"y6","x":"11 May"},{"y":0,"series":"y6","x":"12 May"},{"y":0,"series":"y6","x":"13 May"},{"y":0,"series":"y6","x":"14 May"},{"y":43,"series":"y6","x":"15 May"},{"y":89,"series":"y6","x":"16 May"},{"y":81,"series":"y6","x":"17 May"},{"y":46,"series":"y6","x":"18 May"},{"y":50,"series":"y6","x":"19 May"},{"y":83,"series":"y6","x":"20 May"},{"y":79,"series":"y6","x":"21 May"},{"y":91,"series":"y6","x":"22 May"},{"y":37,"series":"y6","x":"23 May"},{"y":44,"series":"y6","x":"24 May"},{"y":93,"series":"y6","x":"25 May"},{"y":49,"series":"y6","x":"26 May"},{"y":139,"series":"y6","x":"27 May"},{"y":117,"series":"y6","x":"28 May"},{"y":141,"series":"y6","x":"29 May"},{"y":79,"series":"y6","x":"30 May"},{"y":92,"series":"y6","x":"31 May"},{"y":50,"series":"y6","x":"01 June"}]},{"transform":[{"type":"aggregate","summarize":{"y":"sum"},"groupby":["x"]}],"name":"stats","source":"chart"}],"width":1100}</graph>
Positive sampling rate[edit | edit source]
<graph> {
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["dailypositivesamplingrate", "positivesamplingrate"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Percentage",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Case fatality rate[edit | edit source]
The trend of case fatality rate for COVID-19 from 25 March, the day first death in the state was recorded.[2]
<graph> {
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["casefatalityrate"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Percentage",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Total samples tested[edit | edit source]
<graph> {
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["totalsamplestested"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Daily new samples tested[edit | edit source]
<graph> {
// // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Lines // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Lines // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab //
"version": 2, "width": 900, "height": 400,
"padding": "strict",
"signals": [{"name": "rightwidth", "expr": "width + padding.right", "init":"900"}],
"data": [{
"name": "chart",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json"
, "property": "data"
, "parse": {"date": "date"}
},
"transform": [
// Convert xField parameter into a field "_xfield"
{"type": "formula", "field": "_xfield", "expr":
"datum.date"
}
, {"type": "sort", "by": ["_xfield"]}
, {"type": "fold", "fields": ["dailynewsamplestested"]} , {"type": "formula", "field": "_yfield", "expr": "datum.value" }
] },
// source of labels for `tabletype=tab`
{
"name": "labels",
"url": "tabular:///COVID-19 pandemic in Tamil Nadu/Testing and derived stats.tab",
"format": {"type": "json", "property": "fields"},
"transform": [
] },
],
"scales": [
{
"name": "x",
"type": "time",
"domain": {"data": "chart", "field": "_xfield"},
"range": "width",
},
{
"name": "y",
"type": "linear",
"range": "height",
"domain": {"data": "chart", "field": "_yfield"},
},
{
"name": "color",
"type": "ordinal",
"range": "category10",
"domain": {"data": "chart", "field": "key"}
},
{
"name": "labels",
"type": "ordinal",
"domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
}
],
"legends": [{
"fill": "color", "stroke": "color",
"title": "Legend", "properties": { "labels": { "text": {"scale": "labels", "field": "data"} } }
}],
"axes": [
{
"scale": "x", "type": "x", "tickSizeEnd": 0,
"ticks": 7,
"title": "Date",
"grid": true,
"properties": {
"labels": {
}
}
},
{
"scale": "y", "type": "y", "tickSizeEnd": 0,
"title": "Count",
"grid": true,
"properties": {
"labels": {
}
}
}
],
"marks": [
// Group data by the group parameter or "key", and draw lines, one line per group
{
"type": "group",
"from": {
"data": "chart",
"transform": [{"type": "facet", "groupby": ["key"]}]
},
"marks": [
{
"type": "line",
"properties": {
"hover": {
"stroke": {"value": "red"}
},
"update": {
"stroke": {"scale": "color", "field": "key"}
},
"enter": {
"y": {"scale": "y", "field": "_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "key"},
"interpolate": {"value": "monotone"},
"strokeWidth": {"value": 2.5}
}
}
}
],
},
]
} </graph> Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab..
Plot of new samples tested per day vs new confirmed positive per day[edit | edit source]
References[edit | edit source]
- ↑ "Media-Bulletin-22.-07.2020-26-pages-English-485-KB.pdf" (PDF). stopcorona.tn.gov.in. Retrieved 22 July 2020.
- ↑ "மதுரையில் தமிழகத்தின் முதல் கொரோனா பலி : 54 வயது நபர் மரணம்". Tamil News patrikai. 2020-03-25. Archived from the original on 28 March 2020. Retrieved 2020-03-28.
External links[edit | edit source]
- COVID-19 dashboard
- StopCoronaTN – Department of Health and Family Welfare, Tamil Nadu
- Minister of Health and Family Welfare – Ministry of Health and Family Welfare's homepage
- Video at YouTube – National Health Mission Tamil Nadu channel