Graduated part with text labels

I’m using gojs to draw charts.
I need to put text labels along one of my graduated parts.
If I simply try to add new go.Binding('text', '', (val, obj) => {return 'my text'}) to the TextBlock on my part I still see numbers.

How should I add this binding? Should I somehow provide items to graduated part?

Are you using a “Graduated” Panel, as described at GoJS Graduated Panels -- Northwoods Software ? And you want to control the text shown at tick marks?

If so, binding won’t help. Set the TextBlock.graduatedFunction, which will get called for each text label that is drawn.