Template to disable x-grid by default
()
| 633 | |
| 634 | |
| 635 | def xgridoff(): |
| 636 | """ |
| 637 | Template to disable x-grid by default |
| 638 | """ |
| 639 | # Create blank template |
| 640 | template = Template() |
| 641 | template.layout.xaxis.showgrid = False |
| 642 | template.layout.xaxis.title.standoff = 15 |
| 643 | template.layout.yaxis.title.standoff = 15 |
| 644 | |
| 645 | # Automargin for pie chart |
| 646 | template.data.pie = [{"automargin": True}] |
| 647 | |
| 648 | return template |
| 649 | |
| 650 | |
| 651 | builders["xgridoff"] = xgridoff |