Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5160

Chart macro does not render a block element in stand-alone mode

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      The chart macro generates a span element both in inline and stand-alone mode. I think that it should generate a block element of some sort (e.g., a p-element) in stand alone mode.

      The below example illustrates the problem. Web browsers will render the two charts side-by-side.

      {{chart type="bar" params="range:B2-D5;series:columns;" title="Chart Test bar" width="320" height="240" source="inline"}}
      |  |X  |Y  |Z
      |Q1|1.2|3.4|1.3
      |Q2|4.5|3.4|2.3
      |Q3|1.2|4.5|9.0
      |Q4|3.4|1.2|1.2
      {{/chart}}
      
      {{chart type="pie" params="range:B2-D5;series:columns;" title="Chart Test pie" width="320" height="240" source="inline"}}
      |  |X  |Y  |Z
      |Q1|1.2|3.4|1.3
      |Q2|4.5|3.4|2.3
      |Q3|1.2|4.5|9.0
      |Q4|3.4|1.2|1.2
      {{/chart}}
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            anna Anna Bauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: