diff --git a/ippisite/ippidb/templates/base.html b/ippisite/ippidb/templates/base.html index e62186fa25edc48b09bae2639d7f4e47276ab7b8..557cfe8c0f454147b6685c9ab33dba7d9f3fc268 100644 --- a/ippisite/ippidb/templates/base.html +++ b/ippisite/ippidb/templates/base.html @@ -130,6 +130,7 @@ type: 'scatter', data: scatterData, options: { + maintainAspectRatio: true, scales: { xAxes: [{ type: 'linear', diff --git a/ippisite/ippidb/templates/compound_card.html b/ippisite/ippidb/templates/compound_card.html index 1931340e52d1880be1c40eda767e95d6939601da..3a8b425dd8b4d9bd7e1fee98d8ecf9942b37a429 100644 --- a/ippisite/ippidb/templates/compound_card.html +++ b/ippisite/ippidb/templates/compound_card.html @@ -162,7 +162,7 @@ <h5 class="card-header">PCA : iPPI-DB chemical space</h5> <div class="card-body"> - <canvas id="pca_biplot"></canvas> + <canvas id="pca_biplot" style="width:600px; height:600px;"></canvas> <script> drawCompoundsBiplotChart('pca_biplot', {{ compound.id }}, '{{ compound.best_pXC50_activity_ppi_family|default_if_none:"No target family identified" }}', {{ pca_biplot_data | safe }}, 'physicochemistry'); </script>