}
export type TextAlign = 'left' | 'center' | 'right';
+export type Align = 'start' | 'center' | 'end';
export interface VisualElement {
draw(ctx: CanvasRenderingContext2D, area?: ChartArea): void;
* Alignment of the legend.
* @default 'center'
*/
- align: 'start' | 'center' | 'end';
+ align: Align;
/**
* Maximum height of the legend, in pixels
*/
* Alignment of the title.
* @default 'center'
*/
- align: 'start' | 'center' | 'end';
+ align: Align;
/**
* Is the title shown?
* @default false
/** If true, displays the axis title. */
display: boolean;
/** Alignment of the axis title. */
- align: 'start' | 'center' | 'end';
+ align: Align;
/** The text for the title, e.g. "# of People" or "Response Choices". */
text: string | string[];
/** Color of the axis label. */
* The label alignment
* @default 'center'
*/
- align: 'start' | 'center' | 'end';
+ align: Align;
/**
* If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to maxRotation before skipping any. Turn autoSkip off to show all labels no matter what.
* @default true