Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/activity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ const ActivityChart = ({
<Tab.Pane eventKey="contributor">
<ReactECharts
option={option}
opts={{ renderer: "svg" }}
onEvents={{
finished: () => {
window.echartsRenderFinished = true;
}
}}
ref={e => {
if (e) {
const echartInstance = e.getEchartsInstance();
Expand Down
6 changes: 6 additions & 0 deletions src/components/contributor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@ const ContributorLineChart = ({
</div>
<ReactECharts
option={option}
opts={{ renderer: "svg" }}
onEvents={{
finished: () => {
window.echartsRenderFinished = true;
}
}}
ref={e => {
if (e) {
const echartInstance = e.getEchartsInstance();
Expand Down
1 change: 0 additions & 1 deletion src/components/contributor/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export const fetchMergeContributor = (repo, showAlert) => {
return response.json();
})
.then(myJson => {
console.log('myJson: ', myJson);
resolve({ repo, ...myJson });
})
.catch(e => {
Expand Down
8 changes: 4 additions & 4 deletions src/constants.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const generateDefaultOption = ({
handleShareClick = () => {}
handleShareClick = () => { }
}) => {
return {
color: ["#39a85a", "#4385ee", "#fabc37", "#2dc1dd", "#f972cf", "#8331c8"],
Expand All @@ -24,7 +24,7 @@ export const generateDefaultOption = ({
},
dataset: [],
title: {
text: "Contributor Over Time"
text: ""
},
tooltip: {
trigger: "axis"
Expand Down Expand Up @@ -61,7 +61,7 @@ export const generateDefaultOption = ({
};

export const generateMonthlyActivityOption = ({
handleShareClick = () => {}
handleShareClick = () => { }
}) => {
return {
toolbox: {
Expand Down Expand Up @@ -145,4 +145,4 @@ export const DEFAULT_CONTAINER_STYLE = {
width: "996px",
border: "1px solid #dadce0",
borderRadius: "12px"
};
};