File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,16 @@ export abstract class BaseDataSet<T extends Entry> implements IDataSet<T> {
123
123
*/
124
124
visible = true ;
125
125
126
+ /**
127
+ * data space from the smallest value to the bottom in percent of the total axis range
128
+ */
129
+ spaceBottom = 0 ;
130
+
131
+ /**
132
+ * data space from the highest value to the top in percent of the total axis range
133
+ */
134
+ spaceTop = 0 ;
135
+
126
136
/**
127
137
* Constructor with label.
128
138
*
Original file line number Diff line number Diff line change @@ -178,11 +178,11 @@ export abstract class DataSet<T extends Entry> extends BaseDataSet<T> {
178
178
}
179
179
180
180
public get yMin ( ) {
181
- return this . mYMin ;
181
+ return this . mYMin - this . spaceBottom ;
182
182
}
183
183
184
184
public get yMax ( ) {
185
- return this . mYMax ;
185
+ return this . mYMax + this . spaceTop ;
186
186
}
187
187
188
188
public get xMin ( ) {
You can’t perform that action at this time.
0 commit comments