Template to disable y-grid by default
()
| 652 | |
| 653 | |
| 654 | def ygridoff(): |
| 655 | """ |
| 656 | Template to disable y-grid by default |
| 657 | """ |
| 658 | # Create blank template |
| 659 | template = Template() |
| 660 | template.layout.yaxis.showgrid = False |
| 661 | |
| 662 | # Automargin for pie chart |
| 663 | template.data.pie = [{"automargin": True}] |
| 664 | |
| 665 | return template |
| 666 | |
| 667 | |
| 668 | builders["ygridoff"] = ygridoff |