+
{#each headings as heading}
{heading}
@@ -195,10 +183,6 @@
- {:else if heading === 'Legacy'}
-
-
-
{:else if heading === 'Grade'}
@@ -215,11 +199,6 @@
-
- Legacy
-
-
-
Grade
@@ -238,7 +217,6 @@
id={item.id}
upToDate={item.report.tags.up_to_date_percent}
total={item.report.tags.total_elements}
- legacy={item.report.tags.legacy_elements}
grade={item.report.tags.grade}
/>
{/each}
@@ -258,7 +236,7 @@
- *Data sorted by Up-To-Date, then Total Locations, then Legacy.
+ *Data sorted by Up-To-Date and then Total Locations.
*Leaderboard updated once every 24 hours.
diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte
index 5e679e1..70e52ea 100644
--- a/src/routes/dashboard/+page.svelte
+++ b/src/routes/dashboard/+page.svelte
@@ -194,8 +194,6 @@
let upToDateChart: Chart<'line', number[] | undefined, string>;
let totalChartCanvas: HTMLCanvasElement;
let totalChart: Chart<'line', number[] | undefined, string>;
- let legacyChartCanvas: HTMLCanvasElement;
- let legacyChart: Chart<'line', number[] | undefined, string>;
let paymentMethodChartCanvas: HTMLCanvasElement;
let paymentMethodChart: Chart<'line', number[] | undefined, string>;
@@ -333,64 +331,6 @@
}
});
- legacyChart = new Chart(legacyChartCanvas, {
- type: 'line',
- data: {
- labels: statsFiltered.map(({ date }) => date),
- datasets: [
- {
- label: 'Legacy Locations',
- data: statsFiltered.map(({ tags: { legacy_elements } }) => legacy_elements),
- fill: {
- target: 'origin',
- above: 'rgba(235, 87, 87, 0.2)'
- },
- borderColor: 'rgb(235, 87, 87)',
- tension: 0.1,
- pointStyle: false
- }
- ]
- },
- options: {
- maintainAspectRatio: false,
- plugins: {
- legend: {
- labels: {
- font: {
- weight: 600
- }
- }
- }
- },
- scales: {
- x: {
- ticks: {
- maxTicksLimit: 5,
- font: {
- weight: 600
- }
- },
- grid: {
- color: theme === 'dark' ? 'rgba(255, 255, 255, 0.15)' : 'rgba(0, 0, 0, 0.1)'
- }
- },
- y: {
- ticks: {
- font: {
- weight: 600
- }
- },
- grid: {
- color: theme === 'dark' ? 'rgba(255, 255, 255, 0.15)' : 'rgba(0, 0, 0, 0.1)'
- }
- }
- },
- interaction: {
- intersect: false
- }
- }
- });
-
paymentMethodChart = new Chart(paymentMethodChartCanvas, {
type: 'line',
data: {
@@ -554,12 +494,6 @@
});
totalChart.update();
- legacyChart.data.labels = statsFiltered.map(({ date }) => date);
- legacyChart.data.datasets[0].data = statsFiltered.map(
- ({ tags: { legacy_elements } }) => legacy_elements
- );
- legacyChart.update();
-
paymentMethodChart.data.labels = statsFiltered.map(({ date }) => date);
paymentMethodChart.data.datasets[0].data = statsFiltered.map(
({ tags: { total_elements_onchain } }) => total_elements_onchain
@@ -585,13 +519,12 @@
$: $theme !== undefined &&
chartsLoading === false &&
chartsRendered === true &&
- updateChartThemes([upToDateChart, totalChart, legacyChart, paymentMethodChart]);
+ updateChartThemes([upToDateChart, totalChart, paymentMethodChart]);
onMount(async () => {
if (browser) {
upToDateChartCanvas.getContext('2d');
totalChartCanvas.getContext('2d');
- legacyChartCanvas.getContext('2d');
paymentMethodChartCanvas.getContext('2d');
if ($reports && $reports.length) {
@@ -747,23 +680,6 @@
-