Elements Code Block

The elements block allows for the contained elements to be reused by containing several different building blocks. The parent block is elements, with various types of elements contained within it.

All individual elements can be used in central and overview pages.

  elements { 
    <element> id = <string> { 
      <element attributes> 
    }
    <element> id = <string> { 
      <element attributes> 
    }
    ... 
  } 

The element is used within the data-area to reference the <element> in the elements block.

    element id = <string> percent = <number> background-color <string> 

The <element> tag within the elements block is one of the following types:

  bar-chart id = <string> { 
    <cplan> 
    dimension <string> 
    <sort-option> 
    <limit-option> 
    bar <title> <bar-chart-column> { 
      <title> <value> <link> 
    } 
    hide-legend 
    <legend-location> 
  } 
  box style = <string> id = <string> { 
    title <title> 
    title-justification <string> 
    <elements> 
  } 
  grid id = <string> { 
    <cplan> 
    <header-rows> 
    <header-columns> 
    row <label> <column> 
  } 
  hbar-chart id = <string> { 
    <cplan> 
    dimension <string> 
    <sort-option> 
    <limit-option> 
    bar <title> <bar-chart-column> { 
      <title> <value> <link> 
    } 
    hide-legend 
    <legend-location> 
    data-labels 
  } 
  image id = <string> { 
    <cplan> 
    <repository> 
    <column path> 
    <fallback-path> 
  } 
  line-chart id = <string> { 
    <cplan> 
    dimension <string> 
    <sort-option> 
    <limit-option> 
    line <title> <line-chart-column> { 
      <title> <value> <link> 
    } 
    hide-legend 
    legend-location <string> 
  } 
  pie-chart id = <string> { 
    <cplan> 
    dimension <string> 
    <column title> 
    column <pie-chart-column> { 
      <value> <link> 
    } 
  } 
  table id = <string> { 
    <cplan> 
    <list-dimension> 
    <columns> 
    <sort-option> 
    <limit-option> 
    first <integer> 
    no-grid-lines 
  } 

See also: