Skip to content

Commit eab5186

Browse files
authored
Adjust chart points (#51)
* Adjust pie chart points position * Remove unused light layout and logos
1 parent 82a1bf2 commit eab5186

File tree

5 files changed

+7
-131
lines changed

5 files changed

+7
-131
lines changed

src/components/common/DataceboLogo.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/components/common/LightLayout.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/components/common/chevron-mobile.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/components/common/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export { default as Navigation } from "./Navigation";
22
export { default as Article } from "./Article";
3-
export { default as LightLayout } from "./LightLayout";

src/components/community-stats/CustomPieChart.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,37 +59,37 @@ const renderCustomizedLabel = ({ name, value, index, isTablet, isMobile }) => {
5959
const polylinePaths = [
6060
{ from: [-270, -450], bend: [-290, -475], to: [-290, -500] },
6161
{
62-
from: [isTablet ? 360 : 453, isTablet ? 100 : 50],
62+
from: [isTablet ? 360 : 442, isTablet ? 100 : 50],
6363
bend: [isTablet ? 300 : 370, isTablet ? 100 : 50],
6464
to: [isTablet ? 66 : 50, isTablet ? 100 : 50],
6565
},
6666
{
67-
from: [isTablet ? 410 : 512, isTablet ? 115 : 60],
67+
from: [isTablet ? 407 : 505, isTablet ? 115 : 60],
6868
bend: [isTablet ? 320 : 250, isTablet ? 170 : 122],
6969
to: [isTablet ? 69 : 53, isTablet ? 170 : 122],
7070
},
7171
{
72-
from: [isTablet ? 437 : 543, isTablet ? 110 : 80],
72+
from: [isTablet ? 433 : 538, isTablet ? 110 : 80],
7373
bend: [isTablet ? 320 : 220, isTablet ? 240 : 190],
7474
to: [isTablet ? 69 : 56, isTablet ? 240 : 190],
7575
},
7676
{
77-
from: [isTablet ? 454 : 554, isTablet ? 100 : 100],
77+
from: [isTablet ? 449 : 548, isTablet ? 100 : 100],
7878
bend: [isTablet ? 320 : 220, isTablet ? 310 : 260],
7979
to: [isTablet ? 71 : 57, isTablet ? 310 : 260],
8080
},
8181
{
82-
from: [isTablet ? 463 : 580, isTablet ? 100 : 50],
82+
from: [isTablet ? 458 : 576, isTablet ? 100 : 50],
8383
bend: [isTablet ? 600 : 740, isTablet ? 100 : 50],
8484
to: [isTablet ? 742 : 944, isTablet ? 100 : 50],
8585
},
8686
{
87-
from: [isTablet ? 469 : 585, isTablet ? 105 : 65],
87+
from: [isTablet ? 466 : 582, isTablet ? 105 : 65],
8888
bend: [isTablet ? 570 : 745, isTablet ? 171 : 122],
8989
to: [isTablet ? 744 : 944, isTablet ? 171 : 122],
9090
},
9191
{
92-
from: [isTablet ? 471 : 589, isTablet ? 120 : 80],
92+
from: [isTablet ? 470 : 588, isTablet ? 120 : 80],
9393
bend: [isTablet ? 630 : 780, isTablet ? 241 : 190],
9494
to: [isTablet ? 744 : 944, isTablet ? 241 : 190],
9595
},

0 commit comments

Comments
 (0)