Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Creating Line Chart using Rest API & Macro

Rich Harriman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2018

I am trying to create a line chart in the XHTML storage format but I keep getting and error from the server.  This is a simple example of what I am sending.

 

<ac:structured-macro ac:name="chart"">
    <ac:parameter ac:name=type">line</ac:parameter>
    <ac:parameter ac:name="height">400</ac:parameter>
    <ac:parameter ac:name="width">400</ac:parameter>
   <ac:parameter ac:name="domainAxisLabelAngel">up90</ac:parameter>
   <ac:parameter ac:name="categoryLabelPosition">up90</ac:parameter>
   <ac:rich-text-body>
        <table>
            <thead>
                <tr><td>a</td><td>b</td><td>c</td></tr>
           </thead>
           <tbody>
              <tr><td>1</td><td>2</td><td>3</td></tr>
              <tr><td>5</td><td>6</td><td>7</td></tr>
              <tr><td>10</td><td>12</td><td>13</td></tr>
          </tbody>
        </table>
    </ac:rich-text-body>
</ac:structured-macro>

1 answer

0 votes
Rich Harriman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2018

Figured it out the header needs to be inside the tbody

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events