Skip to content

Commit cc85334

Browse files
Amir SohelAmir Sohel
authored andcommitted
adding change
2 parents 06db9ca + 9a4f2b4 commit cc85334

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/Components/Charts/BarChart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function BarChart({ data, height, width, max_bars, accumulate_remaining }) {
135135
]}
136136
// borderColor={{ from: 'color', modifiers: [['darker', 1.6]] }}
137137
borderColor="white"
138-
borderWidth={3}
138+
borderWidth={1}
139139
axisTop={null}
140140
axisRight={null}
141141
// axisLeft={null}

src/Components/Charts/PieChart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function PieChart({ data, height, width, max_slices,accumulate_remaining }) {
120120
{
121121
anchor: 'right',
122122
direction: 'column',
123-
translateX: 150,
123+
translateX: 130,
124124
translateY: 0,
125125
itemWidth: 100,
126126
itemHeight: 25,

src/Data-provider/index.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ async function repoBarGraphCalculation(repoInfo) {
219219
var data_commit_wise = []
220220
var data_popularity_wise = []
221221
var toggle=false;
222+
let color_pallet=[
223+
"#f47560",
224+
"#e8c1a0",
225+
"#f1e15b",
226+
"#e8a838",
227+
"#61cdbb",
228+
"#97e3d5",]
222229
const {
223230
sorted_by_commits,
224231
sorted_by_popularity
@@ -227,20 +234,23 @@ async function repoBarGraphCalculation(repoInfo) {
227234
let repo = sorted_by_commits[i]
228235
toggle = !toggle;
229236
data_commit_wise.push({
230-
"id": repo.name,
237+
"id": repo.name +` (${repo.commits} commits)`,
231238
"label": repo.name,
232239
"commits": repo.commits,
233-
"parsed": repo.name +` (${repo.commits} commits)`, // the data we'll see when hovered on chart
240+
"value": repo.commits,
241+
"parsed":`${repo.commits} commits`, // the data we'll see when hovered on chart
234242
// color user chart default
243+
"color":color_pallet[i%color_pallet.length],
235244
"style": toggle ? "lines" : "dots"
236245
})
237246

238247
repo = sorted_by_popularity[i]
239248
data_popularity_wise.push({
240-
"id": repo.name,
249+
"id": repo.name+` (${repo.stars} Stars , ${repo.forks} Forks)`,
241250
"label": repo.name,
242251
"repo": repo.name,
243252
"stars": repo.stars,
253+
"color":color_pallet[i%color_pallet.length],
244254
"starsColor": "yellow",
245255
"forks": repo.forks,
246256
"forksColor": "purple",

0 commit comments

Comments
 (0)