jQuery UI Widgets Forums General Discussions How does jqxTreeMap determine the size of the rectangles?

This topic contains 1 reply, has 2 voices, and was last updated by  admin 3 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • daryl

    I have created a jqxTreeMap but no data is displayed in the browser. I know it’s
    there by looking at the DOM in developer tools, but it seems the elements have no
    width or height properties. If I stop the debugger and inject some style to the
    element it can see that all the data is there but it just not showing.

    I have read the documentation for jqxTreeMap and I am still trying to understand
    how the widget sizes the data. I read that:

    “A leaf node’s rectangle has an area proportional to a specified dimension on the data.”

    But I find that a very ambiguous statement. Can someone please expand and/or explain
    how the data sized and positioned? Any help would be greatly appreciated.




    Hi Daryl,

    The size of the items is based on their value property. There is algorithm in the widget’s code which calculates the sizes of the individual items and groups of items. The TreeMap of course should have width and height properties set. We would suggest you to use the examples and their code as a starting point.

    Best Regards,
    Peter Stoev

    jQWidgets Team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.