You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xhtml2pdf graph has issue with margin it is not accepting any external margin or padding and it just overlaps over above text or anything on upperside.
Describe the Bug
xhtml2pdf graph has issue with margin it is not accepting any external margin or padding and it just overlaps over above text or anything on upperside.
Minimal Example to Reproduce
firewall_chart_data = {
"data": [firewall_enabled,firewall_disabled],
"labels": ['Enabled','Disabled'],
"title": {"_text": "Firewall Enabled/Disabled", "x": 290, "y": 190},
"type": "pie",
"x": 170, "y": 50,
"sideLabels": 1,
"direction": "anticlockwise",
"simpleLabels": 0,
"slices": {"strokeColor": "white", "strokeWidth": 1},
"legend": {
"alignment": "right",
"boxAnchor": "nw",
"fontSize": 8,
"strokeWidth": 0,
"dy": 6,
"dx": 6,
"dxTextSpace": 4,
"deltay": 6,
"columnMaximum": 99,
"variColumn": 1,
"deltax": 175,
"x": 350,
"y": 125
}
}
Expected Behavior
it should align to center properly and we should be able to give 100% width to canvas box of graph.
Actual Behavior
Currently it just overlaps upper side on the anything above it and does not align properly to the center plus it does not accept full width.
OS version: Windows 11
Python version: 3.9.1
XHTML2PDF version: 0.2.8
The text was updated successfully, but these errors were encountered: