Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private setAxisLabel(configs: AxisConfig, chartTable: Table, row: number, column: number) {
if (configs.label && configs.label.show) {
const label = new Components.AxisLabel(configs.label.caption, configs.label.angle || -90);
chartTable.add(label, row, column);
}
}
export const getXAxisLabel = (configs: Partial): Components.AxisLabel | null => {
return configs.label && configs.label.show
? new Components.AxisLabel(configs.label.caption, configs.label.angle || 0)
: null;
};
private setAxisLabel(configs: AxisConfig, chartTable: Table, row: number, column: number) {
if (configs.label && configs.label.show) {
const label = new Components.AxisLabel(configs.label.caption, configs.label.angle || -90);
chartTable.add(label, row, column);
}
}
export const getYAxisLabel = (configs: Partial): Components.AxisLabel | null => {
return configs.label && configs.label.show
? new Components.AxisLabel(configs.label.caption, configs.label.angle || -90)
: null;
};