Added ability to format value via "extras.formatted"

This commit is contained in:
asantibanez
2023-02-01 13:10:12 -05:00
parent 5bc85376a3
commit c7997758bd
3 changed files with 24 additions and 0 deletions

View File

@@ -91,6 +91,14 @@ const columnChart = () => {
fill: {
opacity: component.get('columnChartModel.opacity') || 0.5
},
tooltip: {
y: {
formatter: function(value, series) {
return data[series.dataPointIndex].extras.formatted || value;
}
}
},
};
const colors = component.get('columnChartModel.colors');