Forums

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

Using Python REST API, create a chart from a table, with the same display of the one got from editor

amanganiello
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!
May 25, 2023

Hi,

using Python REST API, through the following wrapper module: atlassian-python-api · PyPI, I am creating a page using XHTML. My goal is to create a chart from a table, therefore I am using the chart macro described here: Chart Macro | Confluence Data Center and Server 5.9 | Atlassian Documentation, in particular, using the storage format version.

However I would like to obtain a chart that looks like the one I get when I create a chart from a table, using the browser editor, it looks better and it is also interactive, when you move the cursor on a point or bar, it appears the y-axis value for that point. If I use the storage format, I get a simple png picture.

I will insert a picture to explain myself better, this is the chart I got using the XHTML macro chart:
2023-05-25 10_43_35-TestFinalResult - Andrea Manganiello - Confluence and 7 more pages - Work - Micr.png

 

this instead is the one I want, got simply by clicking on a table, and selecting the "chart" button, one of the menu options that pop up underneath the table itself.

2023-05-25 10_44_01-TestFinalResult - Andrea Manganiello - Confluence and 7 more pages - Work - Micr.png
Is it possible to get a chart like the last one, using XHTML/Storage format macros?

Thank you very much in advance for your support.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events