Skip to content

Commit

Permalink
Revert "split charts"
Browse files Browse the repository at this point in the history
This reverts commit 446ed8e.
  • Loading branch information
youtalk committed Sep 20, 2024
1 parent 5afd3a1 commit ca56ee1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 53 deletions.
5 changes: 1 addition & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ <h2>health-check execution times</h2>
<h2>docker-build-and-push execution times</h2>
<div id="docker-build-and-push-time-chart"></div>

<h2>Docker image sizes (without CUDA drivers)</h2>
<h2>Docker image sizes</h2>
<div id="docker-chart"></div>

<h2>Docker image sizes (with CUDA drivers)</h2>
<div id="docker-cuda-chart"></div>
</div>
<script src="./main.js"></script>
</body>
Expand Down
53 changes: 4 additions & 49 deletions public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,51 +234,6 @@ fetch('github_action_data.json')
return [new Date(data.date), data.size / 1024 / 1024 / 1024];
}),
},
],
chart: {
height: 500,
type: 'line',
zoom: {
enabled: true,
},
},
dataLabels: {
enabled: false,
},
title: {
text: 'Docker Image Size',
align: 'left',
},
xaxis: {
type: 'datetime',
},
yaxis: {
min: 0,
labels: {
formatter: (val) => `${val.toFixed(2)}GB`,
},
title: {
text: 'Size',
},
},
tooltip: {
y: {
formatter: function (val) {
return `${val.toFixed(2)}GB`;
},
},
},
};

const dockerChart = new ApexCharts(
document.querySelector('#docker-chart'),
dockerOptions,
);
dockerChart.render();
});

const dockerCudaOptions = {
series: [
{
name: 'base-cuda',
data: json.docker_images['base-cuda'].map((data) => {
Expand Down Expand Up @@ -381,9 +336,9 @@ fetch('github_action_data.json')
},
};

const dockerCudaChart = new ApexCharts(
document.querySelector('#docker-cuda-chart'),
dockerCudaOptions,
const dockerChart = new ApexCharts(
document.querySelector('#docker-chart'),
dockerOptions,
);
dockerCudaChart.render();
dockerChart.render();
});

0 comments on commit ca56ee1

Please sign in to comment.