Template:Category chart/doc

This template makes it easier to show charts that use data provided by the CategoryCounter bot. The above example is the equivalent of articles lacking sources chart, which shows the size of Category:All articles lacking sources over time.

Instructions

 * 1) Create the template for the chart, such as articles lacking sources chart. You only need to call category chart at minimum with the following parameters:
 * 2) *  – a unique identifier for the chart, such as
 * 3) *  – the name of the template that you created, with or without the Template: prefix. Prefix with a colon  for other namespaces. For instance   refers to Template:Articles lacking sources chart and   refers to WikiProject Articles for creation/Backlog chart.
 * 4) *  – (optional) title for the x-axis, such as
 * 5) * See the template data below for other options.
 * 6) Create the /data subpage of the template, for instance Template:Articles lacking sources chart/data and add only the content
 * 7) Have an admin change the content type of the /data page to JSON, for instance at Special:ChangeContentModel/Template:Articles lacking sources chart/data.
 * 8) Have an admin configure the bot at User:MusikBot/CategoryCounter/config.
 * 9) ✅ The bot should start updating the data within the specified granularity (so within a week if you chose "weekly"), which in turn will be visualized in the chart. You can also manually add historical data to the dataset, if you wish.

Template data
{	"params": { "name": { "label": "Name of chart", "description": "Unique identifier for the chart. This can be anything, usually the name of the category with dashes instead of spaces, such as articles-without-sources", "example": "articles-without-sources", "type": "string", "required": true },		"template": { "label": "Title of chart template", "description": "The title of the chart template with or without the Template: namespace prefix. For other namespaces, prefix with a colon", "example": "Articles lacking sources chart", "type": "string", "required": true },		"title": { "label": "Title for the x-axis", "example": "# articles lacking sources", "type": "string", "suggested": true },		"width": { "label": "Width", "description": "width of the chart in pixels", "type": "number" },		"height": { "label": "Height", "description": "Height of the chart in pixels", "type": "number" },		"text_color": { "label": "Text color", "description": "The color of the text on the chart", "type": "string" },		"grid_width": { "label": "Grid width", "description": "The width of the grid lines", "type": "number" },		"line_color": { "label": "Line color", "description": "The color of the line in the graph", "type": "string" },		"line_width": { "label": "Line width", "description": "The width (in pixels) of the line in the graph", "type": "number" },		"subpage": { "label": "Subpage", "description": "Use this to override the title of the subpage where the data lives.", "type": "string", "default": "data" }	},	"paramOrder": [ "name", "template", "title", "width", "height", "text_color", "grid_width", "line_color", "line_width", "subpage" ] }