FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

fix: include all data in CSV

Merged Dr Rich Wareham requested to merge tech-stats-fix into main
1 file
+ 20
15
Compare changes
  • Side-by-side
  • Inline
@@ -100,8 +100,7 @@ export const TechnologyStats = () => {
},
);
const head = sortedCounts.slice(0, MAX_LANGUAGE_COUNT);
return head;
return sortedCounts;
}, [allProjects]);
const dependencyCounts = React.useMemo(() => {
@@ -130,9 +129,7 @@ export const TechnologyStats = () => {
}
return aLabel.localeCompare(bLabel);
});
const head = sortedCounts.slice(0, MAX_DEPENDENCY_COUNT);
sortedCountsByPackager[packager] = head;
sortedCountsByPackager[packager] = sortedCounts;
});
setPackager(Object.keys(sortedCountsByPackager).sort()[0] ?? "");
@@ -208,11 +205,19 @@ export const TechnologyStats = () => {
{
label: "Language",
scaleType: "band",
data: languageCounts.map(({ language }) => language),
data: languageCounts
.slice(0, MAX_LANGUAGE_COUNT)
.map(({ language }) => language),
},
]}
yAxis={[{ label: "Project count" }]}
series={[
{
data: languageCounts
.slice(0, MAX_LANGUAGE_COUNT)
.map(({ value }) => value),
},
]}
yAxis={[{ label: "Project ccount" }]}
series={[{ data: languageCounts.map(({ value }) => value) }]}
height={400}
leftAxis={{
labelStyle: {
@@ -277,17 +282,17 @@ export const TechnologyStats = () => {
{
label: "Dependency",
scaleType: "band",
data: (dependencyCounts[packager] ?? []).map(
({ name }) => name,
),
data: (dependencyCounts[packager] ?? [])
.slice(0, MAX_DEPENDENCY_COUNT)
.map(({ name }) => name),
},
]}
yAxis={[{ label: "Project ccount" }]}
yAxis={[{ label: "Project count" }]}
series={[
{
data: (dependencyCounts[packager] ?? []).map(
({ value }) => value,
),
data: (dependencyCounts[packager] ?? [])
.slice(0, MAX_DEPENDENCY_COUNT)
.map(({ value }) => value),
},
]}
height={400}
Loading