You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mountpoint It is not possible to do it with Carbon charts, but I did a hack around, used a combo chart with 2 bar charts and then did a little css to align everything as i needed it, only problem is you lose tooltips on one of the bar charts cause carbon can't keep track of 2 bar charts, but for my use case it worked, not ideal, but it was the best I could figure out
{
title: 'Past and Upcoming Payments',
axes: {
left: {
mapsTo: 'value',
scaleType: 'linear' as ScaleTypes
},
bottom: {
mapsTo: 'key',
scaleType: 'labels' as ScaleTypes
}
},
comboChartTypes: [
{
type: 'simple-bar',
options: {
bars: { width: 12 }
},
correspondingDatasets: ['Paid Prior Year']
},
{
type: 'stacked-bar',
options: {
bars: { width: 12 }
},
correspondingDatasets: ['Paid Current Year', 'Projected Future Payments']
}
],
height: '500px',
width: '100%',
color: {},
tooltip: {
enabled: false // disabled due to hacking 2 bar charts into 1, carbon does not allow this
},
legend: {
alignment: 'center' as Alignments,
truncation: { numCharacter: 100 }
}
Question
This kind of works
The text was updated successfully, but these errors were encountered: