Forum Discussion

jazfunk's avatar
jazfunk
Frequent Visitor
5 years ago
Solved

Modify Axis Values for Letter Grade Category

I've modified the Microsoft Bullet Chart to have additional bars, and some other necessary customizations.  So far, I've been successful.     The trouble I'm having now is attempting to display let...
  • jazfunk's avatar
    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!