From 4ed7c84140fc3fdfa04a396829be38c797a6bd0f Mon Sep 17 00:00:00 2001 From: "youri.apell@gmail.com" Date: Wed, 2 Nov 2022 16:05:25 +0100 Subject: [PATCH] added pie chart --- .idea/.gitignore | 3 +++ .idea/.name | 1 + .../inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 ++++++++ .idea/twitter-project.iml | 12 ++++++++++++ .idea/vcs.xml | 6 ++++++ __pycache__/dashboard.cpython-310.pyc | Bin 1572 -> 1544 bytes dashboard.py | 2 +- dashboard_static/index.html | 7 ++++--- eca/__pycache__/arff.cpython-310.pyc | Bin 10610 -> 10577 bytes eca/__pycache__/generators.cpython-310.pyc | Bin 3913 -> 3880 bytes 12 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/.name create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/twitter-project.iml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..7b6c1dc --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +neca.py \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..dc9ea49 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..29036a5 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/twitter-project.iml b/.idea/twitter-project.iml new file mode 100644 index 0000000..8b8c395 --- /dev/null +++ b/.idea/twitter-project.iml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/__pycache__/dashboard.cpython-310.pyc b/__pycache__/dashboard.cpython-310.pyc index 7a0a8628cf0b125c1ea27feb05fdcce8f1915948..d3ac58c9299ec08a47dfafede6df592b2d3d2f20 100644 GIT binary patch delta 395 zcmZ3&)4{`+&&$ij00ixANy&z68~G#{In!s&1c9CQleHPG)j5HZzjU3gVnT~ki;80^ z^Gk~|V@k?1OG;9UbPI~|vr>~wV)SAruVGYV-OcrKwL~%ttiyWiEu#zYQi-;5o)Am#`-!J6D`=K;Lu~|GQLSgkLf(oT0l1gc`YK%%mWEYU|z@| zL_;W0b;{BxO|liIRLP-1plS9>ZyPlibO_2fGl-ah9Y4 U)-lyapc(8Se#Z(`HShlZ4_+>0>i_@% diff --git a/dashboard.py b/dashboard.py index fa975ac..6fb5a52 100644 --- a/dashboard.py +++ b/dashboard.py @@ -46,7 +46,7 @@ def generate_tweet(ctx, e): # emit to outside world emit('tweet', tweet) for w in words(tweet['text']): - emit('balk', { + emit('pie', { 'action': 'add', 'value': (str(w), 1) }) diff --git a/dashboard_static/index.html b/dashboard_static/index.html index 54a6f1b..3569603 100644 --- a/dashboard_static/index.html +++ b/dashboard_static/index.html @@ -111,7 +111,7 @@
Sports Popularity Filter -
+
@@ -126,12 +126,13 @@ +