Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.1 kB
1
Indexable
ighlightMonthlyCondition = 
    (seasonalityView == "Monthly" and
        (highlightJan and month == 1) or
        (highlightFeb and month == 2) or
        (highlightMar and month == 3) or
        (highlightApr and month == 4) or
        (highlightMay and month == 5) or
        (highlightJun and month == 6) or
        (highlightJul and month == 7) or
        (highlightAug and month == 8) or
        (highlightSep and month == 9) or
        (highlightOct and month == 10) or
        (highlightNov and month == 11) or
        (highlightDec and month == 12))

highlightWeeklyCondition =
    (seasonalityView == "Weekly" and
        (highlightMon and dayofweek == dayofweek.monday) or
        (highlightTue and dayofweek == dayofweek.tuesday) or
        (highlightWed and dayofweek == dayofweek.wednesday) or
        (highlightThu and dayofweek == dayofweek.thursday) or
        (highlightFri and dayofweek == dayofweek.friday) or
        (highlightSat and dayofweek == dayofweek.saturday) or
        (highlightSun and dayofweek == dayofweek.sunday))

// Define the background color for highlighting
highlightColor = color.green