diff --git a/SquidAnalyzer.pm b/SquidAnalyzer.pm index de3acc9..8f770e5 100644 --- a/SquidAnalyzer.pm +++ b/SquidAnalyzer.pm @@ -3581,6 +3581,17 @@ sub flotr2_bargraph }; $numticks = 24; } + + my $dateTracker_lblopts = ''; + map { if (/label: "([^"]+)"/) { $dateTracker_lblopts .= "'$1',"; } } @legend; + $dateTracker_lblopts =~ s/,$//; + $dateTracker_lblopts = "[$dateTracker_lblopts]"; + + my $dateTracker_dataopts = ''; + map { if (/var (d\d+) =/) { $dateTracker_dataopts .= "$1,"; } } @data; + $dateTracker_dataopts =~ s/,$//; + $dateTracker_dataopts = "[$dateTracker_dataopts]"; + return <