chart.js
Version:
Simple HTML5 charts using the canvas element.
1 lines • 7.3 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[116],{447:function(t,e,r){"use strict";r.r(e);var a=r(6),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-titleoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-titleoptions"}},[t._v("#")]),t._v(" Interface: TitleOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"align"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" align")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("align")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#align"}},[r("code",[t._v("Align")])])],1),t._v(" "),r("p",[t._v("Alignment of the title.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'center'")]),t._v(" "),r("h4",{attrs:{id:"defined-in"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/7079a1c/types/index.esm.d.ts#L2410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2410"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Color of text")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("h4",{attrs:{id:"defined-in-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/7079a1c/types/index.esm.d.ts#L2425",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2425"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("code",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Is the title shown?")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("h4",{attrs:{id:"defined-in-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/7079a1c/types/index.esm.d.ts#L2415",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2415"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandscriptableoptions"}},[r("code",[t._v("ScriptableAndScriptableOptions")])]),t._v("<"),r("code",[t._v("Partial")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/FontSpec.html"}},[r("code",[t._v("FontSpec")])]),t._v(">, "),r("RouterLink",{attrs:{to:"/api/interfaces/ScriptableChartContext.html"}},[r("code",[t._v("ScriptableChartContext")])]),t._v(">")],1),t._v(" "),r("h4",{attrs:{id:"defined-in-4"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/7079a1c/types/index.esm.d.ts#L2426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2426"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"fullsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fullSize")]),t._v(": "),r("code",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). If set to "),r("code",[t._v("false")]),t._v(", places the box above/beside the\nchart area")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("h4",{attrs:{id:"defined-in-5"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/7079a1c/types/index.esm.d.ts#L2433",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2433"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("code",[t._v("number")]),t._v(" | { "),r("code",[t._v("bottom")]),t._v(": "),r("code",[t._v("number")]),t._v(" ; "),r("code",[t._v("top")]),t._v(": "),r("code",[t._v("number")]),t._v(" }")]),t._v(" "),r("p",[t._v("Adds padding above and below the title text if a single number is specified. It is also possible to change top and bottom padding separately.")]),t._v(" "),r("h4",{attrs:{id:"defined-in-6"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/7079a1c/types/index.esm.d.ts#L2437",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2437"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("code",[t._v('"left"')]),t._v(" | "),r("code",[t._v('"right"')]),t._v(" | "),r("code",[t._v('"bottom"')]),t._v(" | "),r("code",[t._v('"top"')])]),t._v(" "),r("p",[t._v("Position of title")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'top'")]),t._v(" "),r("h4",{attrs:{id:"defined-in-7"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/7079a1c/types/index.esm.d.ts#L2420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2420"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[t._v("#")]),t._v(" text")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("text")]),t._v(": "),r("code",[t._v("string")]),t._v(" | "),r("code",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Title text to display. If specified as an array, text is rendered on multiple lines.")]),t._v(" "),r("h4",{attrs:{id:"defined-in-8"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/7079a1c/types/index.esm.d.ts#L2441",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2441"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]);