Display the stack values inside the stacks #32516
Replies: 1 comment
-
Hello @Vinay3199! I'm here to help you with any bugs, questions, or contributions you may have. Let's tackle this issue together! To display the stack values inside the stacks in a stacked bar chart in Superset, you need to adjust the const barSeries: BarSeriesOption[] = [
{
...seriesProps,
name: 'Resulting Cost',
label: {
show: true,
position: 'inside', // Change from 'top' to 'inside'
formatter: seriesformatter,
},
data: resultingCostData,
},
{
...seriesProps,
name: 'Margin',
label: {
show: true,
position: 'inside', // Change from 'top' to 'inside'
formatter: seriesformatter,
},
data: marginData,
},
]; This change will ensure that the labels are displayed inside the bars of the stacked bar chart [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
3.1.3 superset version
3.10.14 python version
I am facing issues with stacked bar charts in Superset. I need to display the stack values inside the stacks instead of on top of the chart.
Beta Was this translation helpful? Give feedback.
All reactions