Skip to content

Commit

Permalink
scaling message
Browse files Browse the repository at this point in the history
  • Loading branch information
dacracot committed May 14, 2023
1 parent c94b457 commit 804796b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/sql/plotly-js.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ select
strftime(' %Y', date('now','-1 day'))||
'</h2>'
from heardSumByHour;
--
--
select
CASE :prefix WHEN 'hi' then '<h6>Markers scaled down by a factor of 10.</h6>'
ELSE ''
END;
--
select '<hr/>';
select '<script>';
select '{';
Expand All @@ -41,7 +46,10 @@ from
commonName,
sum(howMany)||' during week '||strftime('%W',hourOfDay) as LABEL,
CAST(strftime('%W',hourOfDay) AS INTEGER) as WEEK,
sum(howMany) as TOTAL_WEEK
-- sum(howMany) as TOTAL_WEEK
CASE :prefix WHEN 'hi' then (sum(howMany)/10)
ELSE sum(howMany)
END as TOTAL_WEEK
from
heardSumByHour
where
Expand Down

0 comments on commit 804796b

Please sign in to comment.