You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-20Lines changed: 17 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
13
13
14
14
15
-
>A customizable & responsive Waterfall chart for react project
15
+
>A customizable & responsive Waterfall chart for React project
16
16
17
17
18
18
@@ -67,16 +67,13 @@ An example for transactions array is shown below:
67
67
68
68
69
69
```jsx
70
-
consttransactionsList= [
71
-
{
72
-
label:'Quarter 1, 2020',
73
-
value:1000
74
-
},
75
-
{
76
-
label:'Quarter 2, 2020',
77
-
value:-500
78
-
}
79
-
]
70
+
consttransactionsList= [{
71
+
label:'Quarter 1, 2020',
72
+
value:1000
73
+
},{
74
+
label:'Quarter 2, 2020',
75
+
value:-500
76
+
}];
80
77
```
81
78
82
79
You can use `barWidth` prop to specify the width of each bar present in the chart. The given value will be converted to pixels (px) and applied to the chart.
@@ -85,10 +82,10 @@ With the help of `showBridgeLines` prop, the line connecting the adjacent bars c
85
82
86
83
```jsx
87
84
<WaterfallChart
88
-
transactions={transactionsList}
89
-
barWidth={100}
90
-
showBridgeLines={true}
91
-
showFinalSummary={false}
85
+
transactions={transactionsList}
86
+
barWidth={100}
87
+
showBridgeLines={true}
88
+
showFinalSummary={false}
92
89
/>
93
90
```
94
91
@@ -98,8 +95,8 @@ You can specify whether to show or hide the scale lines in the Y axis with the h
98
95
99
96
```jsx
100
97
<WaterfallChart
101
-
transactions={transactionsList}
102
-
showYAxisScaleLines={true}
98
+
transactions={transactionsList}
99
+
showYAxisScaleLines={true}
103
100
/>
104
101
```
105
102
## Props
@@ -193,9 +190,9 @@ the below code shows all the overridable styles:
0 commit comments