1-DAV-202 Data Management 2024/25

Materials · Introduction · Rules · Contact
· Grades from marked homeworks are on the server in file /grades/userid.txt
· Please submit project proposals until Monday April 14.


Difference between revisions of "HWjavascript"

From MAD
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
'''General goal:''' Extend the user pages from the previous lecture with simple visualizations.
 
'''General goal:''' Extend the user pages from the previous lecture with simple visualizations.
  
<!-- NOTEX -->
 
 
Submit your source code to <tt>/submit/javascript/username/</tt>. Also do not forget to submit the database (even if it is the database from us).
 
Submit your source code to <tt>/submit/javascript/username/</tt>. Also do not forget to submit the database (even if it is the database from us).
<!-- /NOTEX -->
+
 
 +
This lesson requires a database with crawled data and a webserver from previous lessons. If you don't have one, you can find it at <tt>/tasks/javascript</tt>
 +
 
  
 
===Task A===
 
===Task A===
  
Display a calendar, which shows during which days was the user active. Use [https://developers.google.com/chart/interactive/docs/gallery/calendar calendar from Google Charts].
+
Show a histogram of comment lengths. Use [https://developers.google.com/chart/interactive/docs/gallery/histogram histogram from Google Charts].
  
 
===Task B===
 
===Task B===
  
Show a histogram of comment lengths. Use [https://developers.google.com/chart/interactive/docs/gallery/histogram histogram from Google Charts].
+
Display a calendar, which shows during which days was the user active. Use [https://developers.google.com/chart/interactive/docs/gallery/calendar calendar from Google Charts].
  
 
===Task C===
 
===Task C===
  
Either: Show a word tree for a user using [https://developers.google.com/chart/interactive/docs/gallery/wordtree word tree from Google Charts]. Try to normalize the text before building the tree (convert to lowercase, remove accents). <tt>CountVectorizer</tt> has <tt>build_analyzer</tt> method, which returns a function, which does this for you.
+
Figure out how to easily visualize a typical week of a user (days and times when he posts something).
 
 
Or: Pick some other appropriate visualization from [https://developers.google.com/chart/interactive/docs/gallery the gallery], feed it with data a show it.
 
Also add some description to it.
 

Latest revision as of 14:23, 10 April 2025

See the lecture

General goal: Extend the user pages from the previous lecture with simple visualizations.

Submit your source code to /submit/javascript/username/. Also do not forget to submit the database (even if it is the database from us).

This lesson requires a database with crawled data and a webserver from previous lessons. If you don't have one, you can find it at /tasks/javascript


Task A

Show a histogram of comment lengths. Use histogram from Google Charts.

Task B

Display a calendar, which shows during which days was the user active. Use calendar from Google Charts.

Task C

Figure out how to easily visualize a typical week of a user (days and times when he posts something).