Changing dimensions

Hello!

I’m using GoJS in order to create a floor plan. Within this context, I want to have the possibility to change the measurement unit (e.g. inches, feet etc). As a general fact, the dimensions for the shapes are taken into consideration as centimeters (e.g a gojs shape with the size 100x100 it has a height & width of 1 meter). The data model only stores centimeter dimensions, and any other conversion are done when visualizing the dimensions (on the client side).

Having this approach in mind, how can I adapt the ruler of the diagram (build upon this example: Diagram with Side and Top Rulers with Markers Showing Mouse Point | GoJS Diagramming Library) to react to different measurements unit change ?
Thanks!

The “Graduated” Panel has a TextBlock that renders the number value. In that sample it does so at an interval of each 10th tick unit. By default the TextBlock | GoJS API formats the number value with at most two decimals. But you could specify a TextBlock.graduatedFunction that would multiply the value by whatever scaling factor you want and then format that value in whatever textual format you like.