more chartwork for better charts

This commit is contained in:
2017-10-02 16:15:33 +02:00
parent 70f7c092dd
commit 56ed56bd00
6 changed files with 100 additions and 45 deletions

View File

@ -81,6 +81,9 @@ public class OHLCData {
*/
public MinMax getMinMax(int first, int last) {
if (data.isEmpty())
return new MinMax(0,0);
if (first >= data.size()) {
OHLCDataItem di = data.get(data.size() - 1);
return new MinMax(di.low, di.high);