I am trying to add an HTML table to the bottom left corner of my print composer. The table is populating with data based on the current atlas feature. The problem is that the table has a different number of rows based on the atlas feature. The way the html table renders in composer currently it draws from the top left corner down. This means that if the box is centered for two rows and an atlas feature has a different number it is no longer lined up properly. Is there a way to have the HTML table draw from the bottom left corner up? This way the table would still be placed properly on the page no matter the number of rows.

The only solution I have found so far is to have the whole composer draw upside down and then rotate the map back to the correct orientation after the export.

  • does this mean that if the # of rows to populate the table results in the covering up of the portion of the map, you're ok with that? or have you designed it to always incorporate enough white space around it to avoid that issue? i think in either case you're not going to find that ability in the html table... – DPSSpatial Jul 19 '17 at 19:04
  • If you are able to count the number of rows beforehand and save it to your atlas layer, it's possible to adjust the positioning of your table via data-defined positions – Nightwatch Jul 20 '17 at 8:05
  • @Nightwatch This may be the only solution. I would accept it if you made it an answer. This is the only solution (so far) that solves the problem of the frame/bounding box. In both HTML and the attribute table frames the table is always drawn is the top left. I was looking to circumvent this behavior. The reference point is only used by the frame/bounding box not by the item it draws. – Ryan Jones Jul 20 '17 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.