Line Element
  • 10 Oct 2024
  • 3 Minutes to read
  • Dark
    Light

Line Element

  • Dark
    Light

Article summary

Intro

ancoreShare Extension allows you to add line elements on the reports for creating better structures in your report, or just to show segregation between elements and sections.

Tip
While adding Qlik Objects to your report, use the pin icon to see the Preview window showing a preview of your report draft. Use the refresh button to see your changes in preview simultaneously.

Basic Settings

Add and select a line element and set general element properties.

Add line element

  1. On the properties panel, click Report Elements Add Element.
  2. Click on Type and select Line from the dropdown list.
NOTE: The Add Element button is always available at the bottom of the properties panel. For multiple elements, please scroll down to see the button.



Caption

When you add a line element, the caption is automatically populated as Line.
You can rename this field to provide a meaningful caption that will help you in navigating through your report elements.


Line width and color

Use the slider to define the Line width (thickness). The unit of the line width is always in points (pt).
Use the color picker to choose the line Color.


Calculation condition

In the Calculation Condition field, click fx to open the expression editor. Specify an expression to set a condition that needs to be fulfilled (true) for the object to be displayed on the report. It works just like the Activation Condition but is specific to each report element. 

Refer to the Qlik documentation to know more about expressions.


Element Properties


Anchor

If there is another existing element on your sheet that comes before in order, you will see an Anchor tab. This setting defines the relative position of elements on the report page. Drag the orange box "B" to set the position of this line element with respect to the preceding element "A" or choose an anchor position from the drop-down list above.


Position

Click the Position tab to define general position settings for the line element on your report.

  • Specify whether to place the text element in the Body or Header of the report page. Elements in the header will be repeated on every page.
    For example, use this setting to display a line that visually separates the header from the body on every page of your report.
  • Optionally, select the Place element on new page to add a new page to the report and start with this line element there.
  • Use the alignment options to align the line element on the report page.

To learn more about how all the positioning and sizing settings work together and affect each other, and how to precisely position the elements on your report by combining them, go to Positioning and Sizing Elements.


Size

Click the Size tab to set the Type and Width of the line element size on your report.

You can choose from any of the following:
  • Automatic: By default, the line element takes 100% of the page width.
  • Percentage of page size: Select this option to define the Width as a percentage of the report page.
  • Numeric value: Select this option to provide a specific Width value manually. By default, the width is measured in millimeters, but you can change the page unit in the Report Settings.

A line element has no height setting, but you can set the thickness of the line in Basic Settings.To learn more about how all the positioning and sizing settings work together and affect each other, and how to precisely position the elements on your report by combining them, go to Positioning and Sizing elements.

Spacing

Click the Spacing tab to define the distance of the line element from neighboring elements on your report. You can do this separately for Left, Right, Top, and Bottom. The behavior of spacing depends on the selected size type.

  1. If you have set the size type as Automatic or Percentage of page size, then the spacing will act as padding and affect the visual size of the line element.
  2. If you have set the size type as Numeric, the spacing will act as a margin and affect the actual position of the line element.

To learn more about how all the positioning and sizing settings work together and affect each other, and how to precisely position the elements on your report by combining them, go to Positioning and Sizing elements.



Deleting line element

At any time, you can click the Delete button to delete the line element.

Optionally, right-click the element in the properties panel and click Delete.


You can add as many lines as you want using the Add Element button and repeat the procedure explained above.

Here's an example showing a report with line elements (highlighted in Pink) positioned with other elements for creating structured reports.





Next Steps:



Was this article helpful?

What's Next