fixing heatmap labels (#10334)

This commit is contained in:
Peter Pisljar 2017-02-22 14:55:51 +01:00 committed by GitHub
parent 0bd7f4264e
commit ca71e37abe

View file

@ -105,6 +105,12 @@ export default function ColumnHandler(Private) {
}
}
];
} else {
config.valueAxes.forEach(axis => {
if (axis.labels) {
axis.labels.axisFormatter = data.data.yAxisFormatter || data.get('yAxisFormatter');
}
});
}
if (!config.categoryAxes) {
@ -192,7 +198,7 @@ export default function ColumnHandler(Private) {
},
labels: {
filter: false,
axisFormatter: val => val
axisFormatter: data.data.yAxisFormatter
},
style: {
rangePadding: 0,