diff --git a/src/components/activity/index.js b/src/components/activity/index.js index faf699e..5e1c2d8 100644 --- a/src/components/activity/index.js +++ b/src/components/activity/index.js @@ -240,6 +240,12 @@ const ActivityChart = ({ { + window.echartsRenderFinished = true; + } + }} ref={e => { if (e) { const echartInstance = e.getEchartsInstance(); diff --git a/src/components/contributor/index.js b/src/components/contributor/index.js index 6eb8159..4a9cd92 100644 --- a/src/components/contributor/index.js +++ b/src/components/contributor/index.js @@ -372,6 +372,12 @@ const ContributorLineChart = ({ { + window.echartsRenderFinished = true; + } + }} ref={e => { if (e) { const echartInstance = e.getEchartsInstance(); diff --git a/src/components/contributor/service.js b/src/components/contributor/service.js index 4e09674..e903275 100644 --- a/src/components/contributor/service.js +++ b/src/components/contributor/service.js @@ -112,7 +112,6 @@ export const fetchMergeContributor = (repo, showAlert) => { return response.json(); }) .then(myJson => { - console.log('myJson: ', myJson); resolve({ repo, ...myJson }); }) .catch(e => { diff --git a/src/constants.js b/src/constants.js index 37cd21a..bbb60ef 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1,5 +1,5 @@ export const generateDefaultOption = ({ - handleShareClick = () => {} + handleShareClick = () => { } }) => { return { color: ["#39a85a", "#4385ee", "#fabc37", "#2dc1dd", "#f972cf", "#8331c8"], @@ -24,7 +24,7 @@ export const generateDefaultOption = ({ }, dataset: [], title: { - text: "Contributor Over Time" + text: "" }, tooltip: { trigger: "axis" @@ -61,7 +61,7 @@ export const generateDefaultOption = ({ }; export const generateMonthlyActivityOption = ({ - handleShareClick = () => {} + handleShareClick = () => { } }) => { return { toolbox: { @@ -145,4 +145,4 @@ export const DEFAULT_CONTAINER_STYLE = { width: "996px", border: "1px solid #dadce0", borderRadius: "12px" -}; \ No newline at end of file +};