FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit f10ab28a authored by Dr Rich Wareham's avatar Dr Rich Wareham
Browse files

Merge branch 'tech-stats-fix' into 'main'

fix: include all data in CSV

See merge request !105
parents f27bc680 f028b6c0
No related branches found
No related tags found
1 merge request!105fix: include all data in CSV
Pipeline #695518 passed
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment