@@ -53,10 +53,6 @@ export abstract class BaseDataSet<T extends Entry> implements IDataSet<T> {
53
53
54
54
private mColorDefault = '#8CEAFF' ;
55
55
56
- protected mGradientColor = null ;
57
-
58
- protected mGradientColors : GradientColor [ ] = null ;
59
-
60
56
/**
61
57
* List representing all colors that are used for drawing the actual values for this DataSet
62
58
*/
@@ -172,17 +168,6 @@ export abstract class BaseDataSet<T extends Entry> implements IDataSet<T> {
172
168
return this . mColors [ Math . floor ( index ) % this . mColors . length ] ;
173
169
}
174
170
175
- public getGradientColors ( ) {
176
- return this . mGradientColors ;
177
- }
178
-
179
- public getGradientColor ( index ?: number ) {
180
- if ( ! this . mGradientColors || index === undefined ) {
181
- return this . mGradientColor ;
182
- }
183
- return this . mGradientColors [ index % this . mGradientColors . length ] ;
184
- }
185
-
186
171
// /**
187
172
// * Sets the colors that should be used fore this DataSet. Colors are reused
188
173
// * as soon as the number of Entries the DataSet represents is higher than
@@ -206,25 +191,6 @@ export abstract class BaseDataSet<T extends Entry> implements IDataSet<T> {
206
191
this . mColors . push ( value ) ;
207
192
}
208
193
209
- /**
210
- * Sets the start and end color for gradient color, ONLY color that should be used for this DataSet.
211
- *
212
- * @param startColor
213
- * @param endColor
214
- */
215
- public setGradientColor ( startColor , endColor ) {
216
- this . mGradientColor = new GradientColor ( startColor , endColor ) ;
217
- }
218
-
219
- /**
220
- * Sets the start and end color for gradient colors, ONLY color that should be used for this DataSet.
221
- *
222
- * @param gradientColors
223
- */
224
- public setGradientColors ( gradientColors : GradientColor [ ] ) {
225
- this . mGradientColors = gradientColors ;
226
- }
227
-
228
194
/**
229
195
* Sets a color with a specific alpha value.
230
196
*
@@ -406,6 +372,22 @@ export abstract class BaseDataSet<T extends Entry> implements IDataSet<T> {
406
372
this . mAxisDependency = dependency ;
407
373
}
408
374
375
+ /**
376
+ * the shader to be used for filling the line surface
377
+ */
378
+ protected mFillShader ;
379
+ /**
380
+ * Sets the shader that is used for filling the area below the line
381
+ *
382
+ * @param shader
383
+ */
384
+ public setFillShader ( shader ) {
385
+ this . mFillShader = shader ;
386
+ }
387
+ public getFillShader ( ) {
388
+ return this . mFillShader ;
389
+ }
390
+
409
391
/**
410
392
* ###### ###### DATA RELATED METHODS ###### ######
411
393
*/
0 commit comments