mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-22 16:48:36 +02:00
fix(network): charts are very short on mobile
This commit is contained in:
@@ -141,9 +141,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-xl-7 h-100">
|
<div class="col-12 col-xl-7">
|
||||||
<canvas id="currencyBalanceChart"></canvas>
|
<div class="chart-container position-relativo tw-h-[40vh]">
|
||||||
<canvas id="accountBalanceChart"></canvas>
|
<canvas id="currencyBalanceChart"></canvas>
|
||||||
|
</div>
|
||||||
|
<div class="chart-container position-relativo tw-h-[40vh]">
|
||||||
|
<canvas id="accountBalanceChart"></canvas>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -157,6 +161,7 @@
|
|||||||
type: 'line',
|
type: 'line',
|
||||||
data: chartData,
|
data: chartData,
|
||||||
options: {
|
options: {
|
||||||
|
maintainAspectRatio: false,
|
||||||
responsive: true,
|
responsive: true,
|
||||||
interaction: {
|
interaction: {
|
||||||
mode: 'index',
|
mode: 'index',
|
||||||
@@ -210,6 +215,7 @@
|
|||||||
type: 'line',
|
type: 'line',
|
||||||
data: chartData,
|
data: chartData,
|
||||||
options: {
|
options: {
|
||||||
|
maintainAspectRatio: false,
|
||||||
responsive: true,
|
responsive: true,
|
||||||
interaction: {
|
interaction: {
|
||||||
mode: 'index',
|
mode: 'index',
|
||||||
@@ -265,7 +271,7 @@
|
|||||||
end
|
end
|
||||||
call chart.update()
|
call chart.update()
|
||||||
end
|
end
|
||||||
|
|
||||||
def showOnlyCurrencyDataset(datasetName)
|
def showOnlyCurrencyDataset(datasetName)
|
||||||
set chart to Chart.getChart('currencyBalanceChart')
|
set chart to Chart.getChart('currencyBalanceChart')
|
||||||
for dataset in chart.data.datasets
|
for dataset in chart.data.datasets
|
||||||
@@ -274,7 +280,7 @@
|
|||||||
end
|
end
|
||||||
call chart.update()
|
call chart.update()
|
||||||
end
|
end
|
||||||
|
|
||||||
def showAllDatasetsAccount()
|
def showAllDatasetsAccount()
|
||||||
set chart to Chart.getChart('accountBalanceChart')
|
set chart to Chart.getChart('accountBalanceChart')
|
||||||
for dataset in chart.data.datasets
|
for dataset in chart.data.datasets
|
||||||
@@ -282,7 +288,7 @@
|
|||||||
end
|
end
|
||||||
call chart.update()
|
call chart.update()
|
||||||
end
|
end
|
||||||
|
|
||||||
def showAllDatasetsCurrency()
|
def showAllDatasetsCurrency()
|
||||||
set chart to Chart.getChart('currencyBalanceChart')
|
set chart to Chart.getChart('currencyBalanceChart')
|
||||||
for dataset in chart.data.datasets
|
for dataset in chart.data.datasets
|
||||||
|
|||||||
Reference in New Issue
Block a user