Diagrams (AI Generated) getting cut off
Tejas Gopal
I'm getting some issues when generating diagrams in the PowerPoint format via the API. The bar diagrams look fantastic but they are getting cut off. Here is my payload request:
create_payload = {
"inputText": full_prompt,
"textMode": "generate",
"format": "presentation",
"themeId": POWERPOINT_THEME,
"numCards": slide_amount,
"cardSplit": "auto",
"additionalInstructions": additional_instructions,
"exportAs": "pptx",
"textOptions": {
"amount": "medium",
"tone": "professional, analytical",
"audience": "You are speaking to business stakeholders at pharmaceutical manufacturing companies, they are non-technical but familiar with pharma data. You are NOT speaking with doctors nor providers.",
"language": "en",
},
"imageOptions": {
"source": "noImages",
},
}
The inputText is essentially sensitive healthcare data which I cannot share but the additional instructions goes like this:
Note that you are talking to pharmaceutical manufacturer stakeholders, not providers. Make the title informative, only utilize a title and nothing else should go at the top. Also no need to mention the steps in the title. Try not to have a lot of empty space in slides, make analysis font readable (not too small). Also utilize box formats for text and other formats when possible, so essentially try to avoid having the entirety of a slide just be text on a white background. When I say "Bar Diagram" I mean a bar diagram with vertical bars showcasing the data. It shouldn't take the whole slide and should be side by side with the combined interpretation. The y axis should showcase numbers while the x axis should be the category. Use whole numbers for the y axis intervals, not decimals. One edge case is that if there's no data for a step, just make a slide that says "no data available for this step". The overall flow should be: Slide 1: Title slide with the topic of the presentation which should reference the prompt. Slide 2: Analysis on Step 1 alongside a pie chart diagram. Slide 3: Analysis on Step 2. Slide 4: Bar Diagram and explanation of previous slide. Slide 5: Analysis on Step 3. Slide 6: Bar Diagram and explanation of previous slide. Slide 7: Analysis on Step 4. Slide 8: Bar Diagram and explanation of previous slide. Slide 9: Analysis on Step 5. Slide 10: Bar Diagram and explanation of previous slide. Slide 11: Analysis on Step 6. Slide 12: Bar Diagram and explanation of previous slide."""
Nik Payne (Gamma design)
Hey Tejas Gopal, thanks for the super detailed writeup and screenshots, this is really helpful. I’ll pass this along to the team.
Quick couple questions so we can narrow it down:
1) Does the cut-off happen in the exported PPTX only, or do you also see it before export (in the generated presentation view)?
2) Is it always the same part getting clipped (x-axis labels, bottom padding, right-side y-axis), and does it correlate with longer category names or certain slide counts/themes?
If you can share just the Gamma requestId / jobId (no healthcare text), that’d help us trace the render/export path on our side.
Tejas Gopal
Nik Payne (Gamma design)
1) It happens only in the exported powerpoint, the preview in the Gamma App looks fine but I only am using the pptx export feature
2) Yea it's usually either the x-axis labels or y-axis labels if it's a bar chart (both horizontal and vertical). It seems to almost always happen, it doesn't correlate with longer category names in my experience as like 95%+ of them are getting cut off.
job id: VuHDwgaPq72mWUSvqVKvs
Tejas Gopal
As an additional note, just look at the bottom of the pictures to see the text getting cut off