@sheetxl/models
Version:
Models - A Headless javascript spreadsheet library.
23 lines • 1.25 kB
TypeScript
import IShapeOptions from "../shape/IShapeOptions";
import { IRange } from "../range/Range";
import { IMultiRange } from "../range/MultiRange";
import MultiSheetModel from "../sheet/MultiSheetModel";
export default interface IChartShapeOptions extends IShapeOptions {
readonly range?: IRange[] | IRange | string | string[] | IMultiRange;
singleLength: boolean;
readonly sheet?: MultiSheetModel;
/**
* By default SheetXL will return the number offset for the Axis label.
* This is consistent with Excel. There are times when an application
* may have additional 'context' for example applications that label their
* rows. In this instance a call back is offered.
*
* Note -
* At the moment there is no provision for this to be updated.
* If this is required then sending an data notification with null
* will refresh the entire chart including the default labels.
*/
getDefaultAxisLabel?: (sheetName: string, absX: number, absY: number, offset: number, count: number) => string | null | undefined;
getDefaultSeriesLabel?: (sheetName: string, absX: number, absY: number, offset: number, count: number) => string | null | undefined;
}
//# sourceMappingURL=IChartShapeOptions.d.ts.map