mirror of
https://github.com/Team4388/RidgeScout.git
synced 2026-06-08 16:28:00 -06:00
Fix candlestick problems
This commit is contained in:
@@ -135,12 +135,14 @@ public class CandlestickView extends View {
|
||||
float scaledMax = PADDING_LEFT + (max - absoluteMin) * scale;
|
||||
|
||||
// Draw the box (interquartile range)
|
||||
RectF box = new RectF(
|
||||
scaledLQ,
|
||||
centerY - CANDLESTICK_HEIGHT / 2,
|
||||
scaledUQ,
|
||||
centerY + CANDLESTICK_HEIGHT / 2);
|
||||
canvas.drawRect(box, boxPaint);
|
||||
if(lowerQuartile != upperQuartile) {
|
||||
RectF box = new RectF(
|
||||
scaledLQ,
|
||||
centerY - CANDLESTICK_HEIGHT / 2,
|
||||
scaledUQ,
|
||||
centerY + CANDLESTICK_HEIGHT / 2);
|
||||
canvas.drawRect(box, boxPaint);
|
||||
}
|
||||
|
||||
// Draw whiskers (min to lower quartile and upper quartile to max)
|
||||
// Left whisker
|
||||
|
||||
@@ -63,7 +63,7 @@ public class FieldDataFragment extends Fragment {
|
||||
for (int i = 0; i < filenames.size(); i++) {
|
||||
try {
|
||||
ScoutingDataWriter.ParsedScoutingDataResult psda = ScoutingDataWriter.load(filenames.get(i), match_values, match_transferValues);
|
||||
if (psda.data.array[fieldIndex] != null && psda.data.array[fieldIndex].get() != null)
|
||||
if (psda.data.array[fieldIndex] != null && psda.data.array[fieldIndex].get() != null && !psda.data.array[fieldIndex].isNull())
|
||||
teamData.add(psda.data.array[fieldIndex]);
|
||||
} catch (Exception e) {
|
||||
AlertManager.error("Failure to load file " + filenames.get(i), e);
|
||||
|
||||
Reference in New Issue
Block a user