Greetings, I have added my Dash app onto a simple Django website to check for functionality. I’m not much of a front-end expert, perhaps some of you already solved this problem and could also provide some solid tips for using Dash in Django (I used the django_dash_plotly library).
The first thing I want to fix is removing the extra scroll bar that comes with the Dash App, look at the far right:
I only want one scrollbar for my entire Django website. How can I expand the Dash app to use all of the width and height possible? I have set both to 100% {height:width}. Basically, integrating the full app onto the page, I don’t want the app dashboard and django to be fighting eachother when a user wants to scroll.
Pretty stuck on this one!
This is my index.html code where I load the dash app module:
{% extends 'base.html' %}
{% block page_content %}
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h1 class="mt-5">A Bootstrap 4 Starter Template</h1>
<p class="lead">Complete with pre-defined file paths and responsive navigation!</p>
<ul class="list-unstyled">
<li>Bootstrap 4.5.0</li>
<li>jQuery 3.5.1</li>
</ul>
</div>
</div>
</div>
{% load plotly_dash %}
<div class= "{% plotly_class name='StockBuckets' %} card" style="height: 100%; width: 100%">
{% plotly_app name='StockBuckets' ratio=0.65 %}
</div>
{% endblock %}