Skip to content

Commit

Permalink
add duration and timestamp to override tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnallfot committed Jun 17, 2024
1 parent bf14ae6 commit 6bfd1b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion LoopFollow/Controllers/Graphs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1849,16 +1849,22 @@ extension MainViewController {
for i in 0..<thisData.count{
let thisItem = thisData[i]
//let multiplier = thisItem.insulNeedsScaleFactor as! Double * 100.0
var labelText = thisItem.notes // + "\r\n"
/*var labelText = thisItem.notes // + "\r\n"
//labelText += String(Int(thisItem.insulNeedsScaleFactor * 100)) + "% Mål:"
/*if thisItem.correctionRange.count == 2 {
let firstValue = Double(thisItem.correctionRange[0])
let result = firstValue / 18.0
labelText! += String(result)
}*/

if thisItem.duration != 0 {
labelText! += "\nVaraktighet: " + String(format:"%.0f",(thisItem.duration / 60)) + "min"
}
if thisItem.enteredBy.count > 0 {
labelText! += "\nInlagt av: " + thisItem.enteredBy
}
*/
var labelText = formatPillTextExtraLine(line1: thisItem.notes ?? "N/A", line2: "Varaktighet: " + String(format:"%.0f",(thisItem.duration / 60)) + " min", time: thisItem.date)


// Start Dot
Expand Down

0 comments on commit 6bfd1b7

Please sign in to comment.