Hello,
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
demo
Kind regards
Axel
Chrome Debugger
Hello,
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
demo
Kind regards
Axel
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