Skip to content
Snippets Groups Projects
Commit 1f8da24c authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix pie charts with numeric breakouts. Resolves #8788

parent 68661792
Branches
Tags
No related merge requests found
......@@ -125,7 +125,8 @@ export default class PieChart extends Component {
getValue: ([{ data: { rows } }], settings) => {
const dimensionIndex = settings["pie._dimensionIndex"];
return dimensionIndex >= 0
? rows.map(row => row[dimensionIndex])
? // cast to string because getColorsForValues expects strings
rows.map(row => String(row[dimensionIndex]))
: null;
},
readDependencies: ["pie._dimensionIndex"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment