Skip to content

Commit 6f3317e

Browse files
committed
fix: allow string colors
1 parent b27b1cb commit 6f3317e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/charting/charts/RadarChart.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export class RadarChart extends PieRadarChartBase<RadarEntry, RadarDataSet, Rada
3333
/**
3434
* color for the main web lines
3535
*/
36-
private mWebColor = new Color(255, 122, 122, 122);
36+
private mWebColor: Color | string = new Color(255, 122, 122, 122);
3737

3838
/**
3939
* color for the inner web
4040
*/
41-
private mWebColorInner = new Color(255, 122, 122, 122);
41+
private mWebColorInner: Color | string = new Color(255, 122, 122, 122);
4242

4343
/**
4444
* transparency the grid is drawn with (0-255)
@@ -248,7 +248,7 @@ export class RadarChart extends PieRadarChartBase<RadarEntry, RadarDataSet, Rada
248248
*
249249
* @param color
250250
*/
251-
public setWebColor(color: Color) {
251+
public setWebColor(color: Color | string) {
252252
this.mWebColor = color;
253253
}
254254

@@ -263,7 +263,7 @@ export class RadarChart extends PieRadarChartBase<RadarEntry, RadarDataSet, Rada
263263
*
264264
* @param color
265265
*/
266-
public setWebColorInner(color: Color) {
266+
public setWebColorInner(color: Color | string) {
267267
this.mWebColorInner = color;
268268
}
269269

0 commit comments

Comments
 (0)