MCPcopy
hub / github.com/palantir/plottable / text

Method text

src/components/label.ts:74–85  ·  view source on GitHub ↗
(displayText?: string)

Source from the content-addressed store, hash-verified

72 */
73 public text(displayText: string): this;
74 public text(displayText?: string): any {
75 if (displayText == null) {
76 return this._text;
77 } else {
78 if (typeof displayText !== "string") {
79 throw new Error("Label.text() only takes strings as input");
80 }
81 this._text = displayText;
82 this.redraw();
83 return this;
84 }
85 }
86
87 /**
88 * Gets the angle of the Label in degrees.

Callers 15

constructorMethod · 0.95
_setupMethod · 0.95
runFunction · 0.95
labelTests.tsFile · 0.80
legendTests.tsFile · 0.80
colorUtilsTests.tsFile · 0.80
axisTests.tsFile · 0.80
timeAxisTests.tsFile · 0.80

Calls 1

redrawMethod · 0.80

Tested by

no test coverage detected