Skip to content

Commit 9460af0

Browse files
authored
update dataSet config, set label isRequired
1 parent 69c66b2 commit 9460af0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/ChartDataConfig.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const lineData = PropTypes.shape({
1414
PropTypes.number
1515
])
1616
),
17-
label: PropTypes.string,
17+
label: PropTypes.string.isRequired,
1818
config: PropTypes.shape({
1919
...ChartDataSetConfig.common,
2020
...ChartDataSetConfig.barLineScatterCandleBubble,
@@ -57,7 +57,7 @@ const barData = PropTypes.shape({
5757
])
5858
])
5959
),
60-
label: PropTypes.string,
60+
label: PropTypes.string.isRequired,
6161
config: PropTypes.shape({
6262
...ChartDataSetConfig.common,
6363
...ChartDataSetConfig.barLineScatterCandleBubble,
@@ -87,7 +87,7 @@ const bubbleData = PropTypes.shape({
8787
size: PropTypes.number.isRequired,
8888
marker: PropTypes.string,
8989
})),
90-
label: PropTypes.string,
90+
label: PropTypes.string.isRequired,
9191
config: PropTypes.shape({
9292
...ChartDataSetConfig.common,
9393
...ChartDataSetConfig.barLineScatterCandleBubble,
@@ -108,7 +108,7 @@ const candleData = PropTypes.shape({
108108
marker: PropTypes.string,
109109
})
110110
),
111-
label: PropTypes.string,
111+
label: PropTypes.string.isRequired,
112112
config: PropTypes.shape({
113113
...ChartDataSetConfig.common,
114114
...ChartDataSetConfig.barLineScatterCandleBubble,
@@ -138,7 +138,7 @@ const pieData = PropTypes.shape({
138138
PropTypes.number
139139
])
140140
),
141-
label: PropTypes.string,
141+
label: PropTypes.string.isRequired,
142142
config: PropTypes.shape({
143143
...ChartDataSetConfig.common,
144144

@@ -156,7 +156,7 @@ const radarData = PropTypes.shape({
156156
PropTypes.number
157157
])
158158
),
159-
label: PropTypes.string,
159+
label: PropTypes.string.isRequired,
160160
config: PropTypes.shape({
161161
...ChartDataSetConfig.common,
162162
...ChartDataSetConfig.lineScatterCandleRadar,
@@ -179,7 +179,7 @@ const scatterData = PropTypes.shape({
179179
PropTypes.number
180180
])
181181
),
182-
label: PropTypes.string,
182+
label: PropTypes.string.isRequired,
183183
config: PropTypes.shape({
184184
...ChartDataSetConfig.common,
185185
...ChartDataSetConfig.barLineScatterCandleBubble,

0 commit comments

Comments
 (0)