Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi friends!
I have a problem. I created barchart in my Mashup. It looks like this:
But when i change
"barGrouping": {"grouping": "grouped" ---> "stacked"},
i get this one:
I want to get barchart like this:
My js-code:
app.visualization.create('barchart',[{"qDef": {"qFieldDefs": ["=Hour"],"qFieldLabels":["Hour"]},"series": {"type": "bar","axis": 0},},{"qDef": {"qFieldDefs": ["FAILPASS"],"qFieldLabels":["Fail/Pass"],},"series": {"type": "bar","axis": 1}},{"qDef": {"qLabel": 'Total',"qDef": "=count(distinct ..........................) "},}],{"showTitles": true,"title": "Net scores","orientation": "vertical","scrollbar": "none","barGrouping": {"grouping": "grouped"},"gridLine": {"auto": false,"spacing": 3},"dataPoint": {"showLabels": true},"color": {"auto": false,"mode": "byExpression","colorExpression": barsColor,"reverseScheme": false,"autoMinMax": true,"byMeasureDef": {"label": "Count(NetScoreName)","key": "Count(NetScoreName)","type": "expression"}},"legend": {"show": false},"qHyperCubeDef": {"qSuppressZero": false,"qSuppressMissing": true,},}).then(function(vis){vis.show("QV04");});
I tried a lot of different ideas (include "qHyperCubeDef": { "qMode": "K" },) but have not got a result... Tell me please what i can do!