Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph has margin issues and not accepting custom margins #693

Open
SachinChauhanPy opened this issue May 10, 2023 · 0 comments
Open

Graph has margin issues and not accepting custom margins #693

SachinChauhanPy opened this issue May 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SachinChauhanPy
Copy link

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

@SachinChauhanPy SachinChauhanPy added the bug Something isn't working label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant