Forum Discussion
Modify Axis Values for Letter Grade Category
- 5 years ago
V-lianl-msft You're correct in that it was difficult, and took me quite a while to come up with a solution... but I did last night.
I was able to capture the axis right before it was drawn.
This screenshot shows the area in the setUpBulletsHorizontally() method where I instantiated the existing scale, built a new axis, set the tickValues() and tickFormat() methods to the letter/number grade conversion values, then assigned it to the bar.xAxisProperties object if the existing current bar/bullet *resultValue in the loop was non-numeric.
*Note: The "resultValue" property is a custom property I added to the BulletChartModel BarData interface.Worked like a charm!
V-lianl-msft You're correct in that it was difficult, and took me quite a while to come up with a solution... but I did last night.
I was able to capture the axis right before it was drawn.
This screenshot shows the area in the setUpBulletsHorizontally() method where I instantiated the existing scale, built a new axis, set the tickValues() and tickFormat() methods to the letter/number grade conversion values, then assigned it to the bar.xAxisProperties object if the existing current bar/bullet *resultValue in the loop was non-numeric.