@xiriframework/xiri-ng 0.2.41 → 0.2.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6228,7 +6228,13 @@ class XiriBarChartComponent {
6228
6228
  itemStyle: { cursor: b.url ? 'pointer' : 'default' }
6229
6229
  })),
6230
6230
  itemStyle: { color, borderRadius: [3, 3, 0, 0] },
6231
- barCategoryGap: '40%'
6231
+ barCategoryGap: '40%',
6232
+ label: {
6233
+ show: !!s.showValues,
6234
+ position: s.labelPosition === 'inside' ? 'inside' : 'top',
6235
+ color: s.labelPosition === 'inside' ? '#fff' : undefined,
6236
+ formatter: (p) => bars[p.dataIndex]?.text ?? String(p.value)
6237
+ }
6232
6238
  }]
6233
6239
  };
6234
6240
  }
@@ -6249,6 +6255,12 @@ class XiriBarChartComponent {
6249
6255
  stack: 'total',
6250
6256
  name: seriesNames[i] || `Segment ${i + 1}`,
6251
6257
  barCategoryGap: '40%',
6258
+ label: {
6259
+ show: !!s.showValues,
6260
+ position: 'inside',
6261
+ color: '#fff',
6262
+ formatter: (p) => (p.value === 0 ? '' : String(p.value))
6263
+ },
6252
6264
  data: bars.map(b => {
6253
6265
  const seg = b.segments?.[i];
6254
6266
  if (!seg)