Skip to content

Commit

Permalink
work on dataLabelPosition option
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbrent committed Jan 17, 2020
1 parent b805ae2 commit 00614f1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/core-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ export interface OptsChartGridLine {
style?: 'solid' | 'dash' | 'dot' | 'none'
}

// TODO: FUTURE: BREAKING-CHANGE: (soln: use `OptsDataLabelPosition|string` until 3.5/4.0)
/*
export interface OptsDataLabelPosition {
pie: 'ctr' | 'inEnd' | 'outEnd' | 'bestFit'
scatter: 'b' | 'ctr' | 'l' | 'r' | 't'
// TODO: add all othere chart types
}
*/

// Opts
// ====
export interface IBorderOptions {
Expand Down Expand Up @@ -116,7 +125,7 @@ export interface IChartOpts extends PositionOptions, OptsChartGridLine {
dataLabelFontSize?: number
dataLabelFormatCode?: string
dataLabelFormatScatter?: 'custom' | 'customXY' | 'XY'
dataLabelPosition?: 'b' | 'bestFit' | 'ctr' | 'l' | 'r' | 't'
dataLabelPosition?: 'b' | 'bestFit' | 'ctr' | 'l' | 'r' | 't' | 'inEnd' | 'outEnd' | 'bestFit'
dataNoEffects?: string
dataTableFontSize?: number
displayBlanksAs?: string
Expand Down

0 comments on commit 00614f1

Please sign in to comment.