Rulered Diagram

I have changed the example a bit, so that the rulers do not overlap. Everything works as expected. From a certain zoom-in level, however, the program crashes.

I’ve created a CodePen demo

Kind regards

Chrome Debugger

Thanks for spotting this, we’ll work on a fix. In the meantime, make sure your TextBlock.graduatedFunction is returning a string, not a number.

In the next release, we’ll call toString() on the return value from graduatedFunction, so your code will work as written. I still encourage returning a string as that’s what’s specified in the API. Thanks again for catching this, as we only checked for it in the debug version of the library (which could be useful to you while developing your app).

works like a charm…
many thanks

2 posts were split to a new topic: Keeping rulers the same size