diff --git a/src/StackedBarChart.tsx b/src/StackedBarChart.tsx index 01382418..904815b7 100644 --- a/src/StackedBarChart.tsx +++ b/src/StackedBarChart.tsx @@ -30,8 +30,13 @@ export interface StackedBarChartProps extends AbstractChartProps { data: StackedBarChartData; width: number; height: number; + /** + * Use for 90 degree verticalLabelRotation or extra height for chart + */ + extraHeight?: number; chartConfig: AbstractChartConfig; - hideLegend: boolean; + hideLegend?: boolean; + hideLabels?: boolean; style?: Partial; barPercentage?: number; decimalPlaces?: number; @@ -46,6 +51,8 @@ export interface StackedBarChartProps extends AbstractChartProps { /** * The number of horizontal lines */ + horizontalLabelRotation?: number; + verticalLabelRotation?: number; segments?: number; percentile?: boolean; @@ -133,7 +140,7 @@ class StackedBarChart extends AbstractChart< /> ); - if (!this.props.hideLegend) { + if (!this.props.hideLabels) { ret.push( - + {this.renderDefs({ ...config, ...this.props.chartConfig })}