Template:Graph:PageViews/doc

Template parameters
{	"params": { "1": {			"type": "number", "default": "30", "label": "Number of days back", "description": "Number of days back to show in the chart" },		"2": {			"label": "Page Title", "description": "Title of the page, with namespace, including needed spaces. If '_' is given, shows the total for the whole site", "type": "wiki-page-name", "default": "Name of the current article page (even if on talk page)", "example": "Main Page" },		"3": {			"label": "Domain", "default": "Current wiki", "example": "en.wikipedia.org", "type": "string", "description": "Domain from which to find page views for the given title, if not this wiki. If '_' is given as parameter 2, 'all-projects' can be used here for all wiki sites summary data" },		"color": { "label": "Graph color", "default": "#00f", "example": "#f00", "type": "string", "description": "Shade with which to highlight the data in the chart" },		"scale": { "label": "Graph scale", "description": "Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold", "default": "linear", "example": "log", "type": "string" },		"max": { "label": "Maximum Y value axis", "description": "This optional value might be useful to align multiple graphs side-by-side", "default": "Automatically scaled to the data.", "example": "10000", "type": "number" },		"width": { "label": "Width", "description": "Width for the chart in pixels, if different from the default.", "type": "number", "default": "800" },		"height": { "label": "Height", "description": "Height for the chart in pixels, if different from the default.", "type": "number", "default": "200" },		"granularity": { "label": "Granularity", "description": "If the 2nd parameter is '_' (shows site stats), set data granularity monthly, daily, or hourly", "type": "string", "default": "monthly" },		"platform": {}, "interpolate": {} },	"paramOrder": [ "1",		"2",		"3",		"color", "scale", "max", "width", "height", "granularity", "platform", "interpolate" ],	"format": "block", "description": "This template inserts a graph of daily pageview statistics (Y axis) over the past N days (X axis) for a page." }

Examples
This graph's main version resides at MediaWiki Template:Graph:PageViews.

Please make all the changes there and copy it everywhere else (until the copying is automated).

Usage tips
Width in Talk headers – When using in the header section of an article Talk page, use   in order to generate a graph element that matches other standard elements often found in talk page headers.

Captions – Some talk pages embed within Info to add a leading caption.

Vertical height – Save vertical space in a Talk page header, with the collapse templates cot/cob. Example: this talk page uses standard talk header width, adds a caption, and collapses the graphs.