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;
|
float scaledMax = PADDING_LEFT + (max - absoluteMin) * scale;
|
||||||
|
|
||||||
// Draw the box (interquartile range)
|
// Draw the box (interquartile range)
|
||||||
RectF box = new RectF(
|
if(lowerQuartile != upperQuartile) {
|
||||||
scaledLQ,
|
RectF box = new RectF(
|
||||||
centerY - CANDLESTICK_HEIGHT / 2,
|
scaledLQ,
|
||||||
scaledUQ,
|
centerY - CANDLESTICK_HEIGHT / 2,
|
||||||
centerY + CANDLESTICK_HEIGHT / 2);
|
scaledUQ,
|
||||||
canvas.drawRect(box, boxPaint);
|
centerY + CANDLESTICK_HEIGHT / 2);
|
||||||
|
canvas.drawRect(box, boxPaint);
|
||||||
|
}
|
||||||
|
|
||||||
// Draw whiskers (min to lower quartile and upper quartile to max)
|
// Draw whiskers (min to lower quartile and upper quartile to max)
|
||||||
// Left whisker
|
// Left whisker
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public class FieldDataFragment extends Fragment {
|
|||||||
for (int i = 0; i < filenames.size(); i++) {
|
for (int i = 0; i < filenames.size(); i++) {
|
||||||
try {
|
try {
|
||||||
ScoutingDataWriter.ParsedScoutingDataResult psda = ScoutingDataWriter.load(filenames.get(i), match_values, match_transferValues);
|
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]);
|
teamData.add(psda.data.array[fieldIndex]);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
AlertManager.error("Failure to load file " + filenames.get(i), e);
|
AlertManager.error("Failure to load file " + filenames.get(i), e);
|
||||||
|
|||||||
Reference in New Issue
Block a user