GuglielmoTor commited on
Commit
b328d4e
·
verified ·
1 Parent(s): d33040c

Update formulas.py

Browse files
Files changed (1) hide show
  1. formulas.py +112 -153
formulas.py CHANGED
@@ -2,256 +2,215 @@
2
 
3
  PLOT_FORMULAS = {
4
  "posts_activity": {
5
- "title": "Posts Activity Over Time",
6
  "description": (
7
- "This chart displays the number of posts made each day over the selected period. "
8
- "It helps in understanding posting consistency and identifying trends in content output."
9
  ),
10
  "calculation_steps": [
11
- "1. Takes the posts dataset and a date column (default: 'published_at').",
12
- "2. Converts the date column to a proper datetime format.",
13
- "3. Removes any entries where the date is invalid.",
14
- "4. Groups the posts by day.",
15
- "5. Counts the number of posts for each day.",
16
- "6. Displays the daily post count as a line graph over time."
17
  ]
18
  },
19
  "mentions_activity": {
20
- "title": "Mentions Activity Over Time",
21
  "description": (
22
- "This chart shows the number of mentions received each day over the selected period. "
23
- "It's useful for tracking brand presence and engagement spikes related to mentions."
24
  ),
25
  "calculation_steps": [
26
- "1. Takes the mentions dataset and a date column (default: 'date').",
27
- "2. Converts the date column to a proper datetime format.",
28
- "3. Removes any entries where the date is invalid.",
29
- "4. Groups the mentions by day.",
30
- "5. Counts the number of mentions for each day.",
31
- "6. Displays the daily mention count as a line graph over time."
32
  ]
33
  },
34
  "mention_sentiment": {
35
- "title": "Mention Sentiment Distribution",
36
  "description": (
37
- "This pie chart illustrates the proportion of mentions categorized by sentiment (e.g., positive, negative, neutral). "
38
- "It provides a quick overview of the overall tone surrounding your brand mentions."
39
  ),
40
  "calculation_steps": [
41
- "1. Takes the mentions dataset and a sentiment column (default: 'sentiment_label').",
42
- "2. Counts the occurrences of each unique sentiment value (e.g., 'Positive', 'Negative', 'Neutral').",
43
- "3. Displays these counts as a pie chart, with each slice representing the percentage of a sentiment category."
 
44
  ]
45
  },
46
  "followers_count_over_time": {
47
- "title": "Followers Count Over Time",
48
  "description": (
49
- "This chart tracks the cumulative number of organic and paid followers over time for a specific follower metric (e.g., 'follower_gains_monthly'). "
50
- "It helps visualize audience growth from different sources."
51
- "The specific metric (e.g., monthly gains, total followers) is determined by the 'type_value' parameter used when generating the plot."
52
  ),
53
  "calculation_steps": [
54
- "1. Takes the follower statistics dataset.",
55
- "2. Filters the data based on a 'type_filter_column' (default: 'follower_count_type') and a specific 'type_value' (e.g., 'follower_gains_monthly').",
56
- "3. Uses a date information column (default: 'category_name', expected to contain date strings) and converts it to datetime objects.",
57
- "4. Extracts organic follower counts (default: 'follower_count_organic') and paid follower counts (default: 'follower_count_paid').",
58
- "5. Ensures follower counts are numeric, replacing missing values with 0.",
59
- "6. Removes entries with invalid dates or follower counts.",
60
- "7. Sorts the data by date.",
61
- "8. Plots the organic and paid follower counts as separate lines on a graph over time."
62
  ]
63
  },
64
  "followers_growth_rate": {
65
- "title": "Follower Growth Rate",
66
  "description": (
67
- "This chart displays the percentage change in organic and paid followers over time for a specific follower metric. "
68
- "It highlights the speed of audience growth or decline. "
69
- "The specific metric is determined by the 'type_value' parameter."
70
  ),
71
  "calculation_steps": [
72
- "1. Similar to 'Followers Count Over Time', data is filtered and prepared based on 'type_value'.",
73
- "2. The date column is set as the index.",
74
- "3. Calculates the period-over-period percentage change for both organic and paid follower counts (e.g., ((current_period_followers - previous_period_followers) / previous_period_followers) * 100).",
75
- "4. Handles any infinite values resulting from division by zero (e.g., if previous count was 0).",
76
- "5. Plots the calculated organic and paid growth rates as separate lines on a graph over time. The Y-axis is formatted as a percentage."
77
  ]
78
  },
79
  "followers_by_demographics": {
80
- "title": "Followers by Demographics",
81
  "description": (
82
- "This bar chart breaks down the number of organic and paid followers by a chosen demographic category (e.g., country, industry, seniority). "
83
- "It shows the top N categories, helping to understand audience composition. The specific demographic breakdown is determined by the 'type_value' (e.g., 'followers_by_country') and 'category_col' parameters."
84
  ),
85
  "calculation_steps": [
86
- "1. Takes the follower statistics dataset.",
87
- "2. Filters data based on 'type_filter_column' and a specific 'type_value' that defines the demographic type (e.g., 'followers_by_country').",
88
- "3. Extracts organic and paid follower counts, ensuring they are numeric.",
89
- "4. Groups the data by the specified 'category_col' (e.g., 'country_name') and sums the organic and paid followers for each category.",
90
- "5. Sorts the demographic categories by the total number of followers (organic + paid) in descending order.",
91
- "6. Displays the top N (default: 10) demographic categories.",
92
- "7. For each top category, plots the number of organic and paid followers as a grouped bar chart."
93
  ]
94
  },
95
  "engagement_rate_over_time": {
96
- "title": "Engagement Rate Over Time",
97
  "description": (
98
- "This chart visualizes the average engagement rate of your posts on a daily basis. "
99
- "Engagement rate is typically calculated as (Total Engagements / Total Impressions or Reach or Followers) * 100. "
100
- "The specific formula for 'engagement' column should be predefined in your data."
101
  ),
102
  "calculation_steps": [
103
- "1. Takes the posts dataset with a date column (default: 'published_at') and an engagement rate column (default: 'engagement').",
104
- "2. Converts the date column to datetime and the engagement rate column to numeric.",
105
- "3. Removes entries with invalid dates or engagement rates.",
106
- "4. Groups the data by day.",
107
- "5. Calculates the average engagement rate for each day.",
108
- "6. Plots this daily average engagement rate as a line graph. The Y-axis is formatted as a percentage."
109
  ]
110
  },
111
  "reach_over_time": {
112
- "title": "Reach Over Time (Clicks)",
113
  "description": (
114
- "This chart shows the total number of clicks (often used as a proxy for reach for certain post types or if 'reach' data isn't directly available) on your posts, aggregated daily. "
115
- "It helps track how many unique users potentially saw your content, based on click interactions."
116
  ),
117
  "calculation_steps": [
118
- "1. Takes the posts dataset with a date column (default: 'published_at') and a clicks column (default: 'clickCount').",
119
- "2. Converts the date column to datetime and the clicks column to numeric.",
120
- "3. Removes entries with invalid dates or click counts.",
121
- "4. Groups the data by day.",
122
- "5. Calculates the sum of clicks for each day.",
123
- "6. Plots the daily total clicks as a line graph over time."
124
  ]
125
  },
126
  "impressions_over_time": {
127
- "title": "Impressions Over Time",
128
  "description": (
129
- "This chart displays the total number of impressions your posts received, aggregated daily. "
130
- "Impressions represent the total number of times your content was displayed, regardless of whether it was clicked."
131
  ),
132
  "calculation_steps": [
133
- "1. Takes the posts dataset with a date column (default: 'published_at') and an impressions column (default: 'impressionCount').",
134
- "2. Converts the date column to datetime and the impressions column to numeric.",
135
- "3. Removes entries with invalid dates or impression counts.",
136
- "4. Groups the data by day.",
137
- "5. Calculates the sum of impressions for each day.",
138
- "6. Plots the daily total impressions as a line graph over time."
139
  ]
140
  },
141
  "likes_over_time": {
142
- "title": "Reactions (Likes) Over Time",
143
  "description": (
144
- "This chart tracks the total number of likes (or reactions) your posts received, aggregated daily. "
145
- "It's a key indicator of content resonance and audience appreciation."
146
  ),
147
  "calculation_steps": [
148
- "1. Takes the posts dataset with a date column (default: 'published_at') and a likes column (default: 'likeCount').",
149
- "2. Converts the date column to datetime and the likes column to numeric.",
150
- "3. Removes entries with invalid dates or like counts.",
151
- "4. Groups the data by day.",
152
- "5. Calculates the sum of likes for each day.",
153
- "6. Plots the daily total likes as a line graph over time."
154
  ]
155
  },
156
- "clicks_over_time": { # Note: This reuses the reach_over_time logic
157
- "title": "Clicks Over Time",
158
  "description": (
159
- "This chart shows the total number of clicks on your posts, aggregated daily. "
160
- "It directly measures user interaction involving clicks on your content or links within it."
161
  ),
162
  "calculation_steps": [
163
- "1. Takes the posts dataset with a date column (default: 'published_at') and a clicks column (default: 'clickCount').",
164
- "2. Converts the date column to datetime and the clicks column to numeric.",
165
- "3. Removes entries with invalid dates or click counts.",
166
- "4. Groups the data by day.",
167
- "5. Calculates the sum of clicks for each day.",
168
- "6. Plots the daily total clicks as a line graph over time. (This plot uses the same calculation logic as 'Reach Over Time (Clicks)')."
169
  ]
170
  },
171
  "shares_over_time": {
172
- "title": "Shares Over Time",
173
  "description": (
174
- "This chart displays the total number of times your posts were shared, aggregated daily. "
175
- "Shares are a strong indicator of content value and audience advocacy."
176
  ),
177
  "calculation_steps": [
178
- "1. Takes the posts dataset with a date column (default: 'published_at') and a shares column (default: 'shareCount').",
179
- "2. Converts the date column to datetime and the shares column to numeric.",
180
- "3. Removes entries with invalid dates or share counts.",
181
- "4. Groups the data by day.",
182
- "5. Calculates the sum of shares for each day.",
183
- "6. Plots the daily total shares as a line graph over time."
184
  ]
185
  },
186
  "comments_over_time": {
187
- "title": "Comments Over Time",
188
  "description": (
189
- "This chart tracks the total number of comments on your posts, aggregated daily. "
190
- "Comments reflect audience engagement and conversation around your content."
191
  ),
192
  "calculation_steps": [
193
- "1. Takes the posts dataset with a date column (default: 'published_at') and a comments column (default: 'commentCount').",
194
- "2. Converts the date column to datetime and the comments column to numeric.",
195
- "3. Removes entries with invalid dates or comment counts.",
196
- "4. Groups the data by day.",
197
- "5. Calculates the sum of comments for each day.",
198
- "6. Plots the daily total comments as a line graph over time."
199
  ]
200
  },
201
  "comments_sentiment_breakdown": {
202
- "title": "Breakdown of Comments by Sentiment",
203
  "description": (
204
- "This pie chart shows the distribution of sentiments (e.g., positive, negative, neutral) expressed in the comments on your posts. "
205
- "It helps in understanding audience reactions at a deeper level."
206
  ),
207
  "calculation_steps": [
208
- "1. Takes the comments dataset (or posts dataset if comments have sentiment labels) and a sentiment column (default: 'comment_sentiment', with 'sentiment' as a fallback).",
209
- "2. Ensures the sentiment column is treated as string data.",
210
- "3. Counts the occurrences of each unique sentiment value.",
211
- "4. Displays these counts as a pie chart, with each slice representing the percentage of a sentiment category in comments."
212
  ]
213
  },
214
  "post_frequency": {
215
- "title": "Post Frequency Over Time",
216
  "description": (
217
- "This chart visualizes how frequently posts are made, aggregated by a chosen period (Daily 'D', Weekly 'W', or Monthly 'M'). "
218
- "It helps assess content scheduling and output rhythm. The aggregation period is determined by the 'resample_period' parameter."
219
  ),
220
  "calculation_steps": [
221
- "1. Takes the posts dataset with a date column (default: 'published_at').",
222
- "2. Converts the date column to datetime format.",
223
- "3. Removes entries with invalid dates.",
224
- "4. Groups posts by the specified 'resample_period' (e.g., 'D' for day, 'W' for week, 'M' for month).",
225
- "5. Counts the number of posts within each period.",
226
- "6. Displays the result as a line chart for daily frequency or a bar chart for weekly/monthly frequency."
227
  ]
228
  },
229
  "content_format_breakdown": {
230
- "title": "Breakdown of Content by Format",
231
  "description": (
232
- "This bar chart shows the distribution of your posts based on their media type or format (e.g., article, image, video). "
233
- "It helps identify which content formats are most commonly used."
234
  ),
235
  "calculation_steps": [
236
- "1. Takes the posts dataset and a format column (default: 'media_type').",
237
- "2. Counts the occurrences of each unique media type.",
238
- "3. Displays these counts as a bar chart, with each bar representing a media type and its height representing the number of posts."
239
  ]
240
  },
241
  "content_topic_breakdown": {
242
- "title": "Breakdown of Content by Topics",
243
  "description": (
244
- "This horizontal bar chart displays the most frequent topics associated with your posts, based on assigned labels (e.g., from 'li_eb_labels' column). "
245
- "It shows the top N topics (default: 15) to highlight key themes in your content strategy."
246
  ),
247
  "calculation_steps": [
248
- "1. Takes the posts dataset and a topics column (default: 'li_eb_labels') which may contain single labels or lists of labels.",
249
- "2. Parses the topics column: if an entry is a string representation of a list, it's converted to a list; otherwise, it's treated as a single-item list. Empty or invalid entries are handled.",
250
- "3. 'Explodes' the data so that each individual topic label from a post gets its own row.",
251
- "4. Filters out any empty string labels that might have resulted from parsing.",
252
- "5. Counts the occurrences of each unique topic.",
253
- "6. Selects the top N most frequent topics (default N=15).",
254
- "7. Displays these top topics and their counts as a horizontal bar chart."
255
  ]
256
  }
257
- }
 
2
 
3
  PLOT_FORMULAS = {
4
  "posts_activity": {
5
+ "title": "Attività dei Post nel Tempo",
6
  "description": (
7
+ "Scopri quanto spesso pubblichi! Questo grafico ti mostra il numero di post pubblicati ogni giorno. "
8
+ "È perfetto per capire se la tua strategia di contenuti è costante e per individuare i periodi di maggiore attività."
9
  ),
10
  "calculation_steps": [
11
+ "1. Analizziamo i tuoi post e le date di pubblicazione.",
12
+ "2. Raggruppiamo i post per giorno.",
13
+ "3. Contiamo quanti post hai fatto ogni giorno.",
14
+ "4. Ti mostriamo l'andamento come una linea colorata nel tempo. Più è alta, più hai postato!"
 
 
15
  ]
16
  },
17
  "mentions_activity": {
18
+ "title": "Chi Parla di Te? Attività delle Menzioni",
19
  "description": (
20
+ "Quante volte sei stato nominato? Questo grafico traccia le menzioni giornaliere del tuo brand. "
21
+ "Ideale per monitorare la tua popolarità e l'effetto delle tue campagne."
22
  ),
23
  "calculation_steps": [
24
+ "1. Raccogliamo tutte le volte che il tuo brand è stato menzionato.",
25
+ "2. Controlliamo la data di ogni menzione.",
26
+ "3. Contiamo le menzioni giorno per giorno.",
27
+ "4. Visualizziamo il tutto con una linea che sale e scende, mostrandoti i picchi di attenzione!"
 
 
28
  ]
29
  },
30
  "mention_sentiment": {
31
+ "title": "Cosa Dice la Gente? Il Sentiment delle Menzioni",
32
  "description": (
33
+ "Come viene percepito il tuo brand? Questa torta colorata divide le menzioni in base al sentiment (positivo, negativo, neutro). "
34
+ "Un colpo d'occhio per capire l'umore generale attorno a te!"
35
  ),
36
  "calculation_steps": [
37
+ "1. Leggiamo le menzioni ricevute.",
38
+ "2. Capiamo se il tono è positivo, negativo o neutro.",
39
+ "3. Contiamo quante menzioni appartengono a ciascuna categoria di sentiment.",
40
+ "4. Ti presentiamo una torta dove ogni fetta colorata rappresenta la percentuale di un tipo di sentiment. Più grande la fetta, più forte quel sentiment!"
41
  ]
42
  },
43
  "followers_count_over_time": {
44
+ "title": "La Tua Community Cresce? Numero di Follower nel Tempo",
45
  "description": (
46
+ "Guarda come cresce la tua base di fan! Questo grafico mostra l'aumento dei tuoi follower, distinguendo tra quelli ottenuti naturalmente (organici) e quelli tramite promozioni (a pagamento). "
47
+ "Fondamentale per vedere l'impatto delle tue strategie di crescita."
 
48
  ),
49
  "calculation_steps": [
50
+ "1. Prendiamo i dati sulla crescita dei tuoi follower.",
51
+ "2. Distinguiamo i follower 'naturali' da quelli 'a pagamento'.",
52
+ "3. Controlliamo le date per vedere l'evoluzione mese per mese.",
53
+ "4. Ti mostriamo due linee colorate: una per i follower organici e una per quelli a pagamento, così vedi subito come sta andando!"
 
 
 
 
54
  ]
55
  },
56
  "followers_growth_rate": {
57
+ "title": "A Che Velocità Crescono i Follower? Tasso di Crescita",
58
  "description": (
59
+ "Quanto velocemente stai conquistando nuovi follower? Questo grafico ti svela il tasso di crescita percentuale dei tuoi follower organici e a pagamento. "
60
+ "Indica se la tua community sta accelerando o rallentando."
 
61
  ),
62
  "calculation_steps": [
63
+ "1. Partiamo dai numeri dei tuoi follower, organici e a pagamento.",
64
+ "2. Calcoliamo la variazione percentuale da un periodo all'altro (ad esempio, da un mese al successivo).",
65
+ "3. Ti mostriamo queste percentuali con delle linee, per farti capire subito se stai crescendo più o meno velocemente."
 
 
66
  ]
67
  },
68
  "followers_by_demographics": {
69
+ "title": "Chi Sono i Tuoi Follower? Analisi Demografica",
70
  "description": (
71
+ "Conosci il tuo pubblico! Questo grafico a barre mostra da dove vengono i tuoi follower, che ruolo hanno, in che settore lavorano o il loro livello di esperienza. "
72
+ "Ti fa vedere le categorie principali per capire meglio chi ti segue. Il tipo di dettaglio (es. Paese, Settore) dipende dalla visualizzazione scelta."
73
  ),
74
  "calculation_steps": [
75
+ "1. Analizziamo le informazioni disponibili sui tuoi follower (come località, settore, etc.).",
76
+ "2. Raggruppiamo i follower per queste categorie.",
77
+ "3. Contiamo quanti follower (organici e a pagamento) appartengono a ciascuna categoria.",
78
+ "4. Ti mostriamo le categorie più numerose con delle barre colorate. Più alta la barra, più follower di quel tipo!"
 
 
 
79
  ]
80
  },
81
  "engagement_rate_over_time": {
82
+ "title": "Quanto Coinvolgi? Tasso di Engagement nel Tempo",
83
  "description": (
84
+ "I tuoi post catturano l'attenzione? Questo grafico misura il tasso di coinvolgimento medio dei tuoi post, giorno per giorno. "
85
+ "L'engagement si calcola solitamente come (Interazioni Totali / Visualizzazioni o Follower) * 100. Un indicatore chiave per l'efficacia dei contenuti!"
 
86
  ),
87
  "calculation_steps": [
88
+ "1. Guardiamo le date dei tuoi post e il loro tasso di engagement (già calcolato nei tuoi dati).",
89
+ "2. Calcoliamo la media giornaliera del tasso di engagement.",
90
+ "3. Una linea ti mostrerà l'andamento, facendoti vedere i giorni in cui i tuoi contenuti hanno 'spaccato' di più!"
 
 
 
91
  ]
92
  },
93
  "reach_over_time": {
94
+ "title": "Quante Persone Raggiungi? Copertura nel Tempo (Click)",
95
  "description": (
96
+ "Fino a dove arrivano i tuoi messaggi? Questo grafico traccia il numero totale di click sui tuoi post, aggregati giornalmente. "
97
+ "I click sono un buon modo per stimare quante persone hanno interagito attivamente con i tuoi contenuti."
98
  ),
99
  "calculation_steps": [
100
+ "1. Prendiamo i tuoi post e contiamo i click ricevuti ogni giorno.",
101
+ "2. Sommiamo i click giornalieri.",
102
+ "3. Una linea ti mostra l'andamento dei click totali nel tempo. Più sale, più persone interagiscono!"
 
 
 
103
  ]
104
  },
105
  "impressions_over_time": {
106
+ "title": "Quante Volte Appari? Visualizzazioni nel Tempo",
107
  "description": (
108
+ "Quante volte i tuoi post sono stati visti? Questo grafico mostra il numero totale di visualizzazioni (impression) giornaliere. "
109
+ "Le visualizzazioni indicano quante volte i tuoi contenuti sono apparsi sullo schermo degli utenti."
110
  ),
111
  "calculation_steps": [
112
+ "1. Analizziamo i tuoi post e contiamo quante volte sono stati visualizzati ogni giorno.",
113
+ "2. Sommiamo le visualizzazioni giornaliere.",
114
+ "3. Una linea ti mostra l'andamento delle visualizzazioni totali. Utile per capire la visibilità generale!"
 
 
 
115
  ]
116
  },
117
  "likes_over_time": {
118
+ "title": "Piaci alla Gente? Reazioni (Like) nel Tempo",
119
  "description": (
120
+ "I tuoi contenuti piacciono? Questo grafico traccia il numero totale di 'Mi piace' (o reazioni) ricevuti dai tuoi post, giorno per giorno. "
121
+ "Un segnale forte di apprezzamento da parte del tuo pubblico!"
122
  ),
123
  "calculation_steps": [
124
+ "1. Guardiamo i tuoi post e contiamo i 'Mi piace' ricevuti ogni giorno.",
125
+ "2. Sommiamo i 'Mi piace' giornalieri.",
126
+ "3. Una linea ti mostra quanti 'Mi piace' accumuli nel tempo. Vedi subito cosa funziona!"
 
 
 
127
  ]
128
  },
129
+ "clicks_over_time": {
130
+ "title": "Click sui Contenuti nel Tempo",
131
  "description": (
132
+ "Quanti click generano i tuoi post? Questo grafico mostra il numero totale di click sui tuoi contenuti o link, aggregati giornalmente. "
133
+ "Misura diretta dell'interesse e dell'azione degli utenti."
134
  ),
135
  "calculation_steps": [
136
+ "1. Prendiamo i tuoi post e contiamo i click ricevuti ogni giorno.", # Stessa logica di 'reach_over_time'
137
+ "2. Sommiamo i click giornalieri.",
138
+ "3. Una linea ti mostra l'andamento dei click totali nel tempo. Più sale, più persone interagiscono attivamente!"
 
 
 
139
  ]
140
  },
141
  "shares_over_time": {
142
+ "title": "Contenuti Virali? Condivisioni nel Tempo",
143
  "description": (
144
+ "I tuoi post vengono condivisi? Questo grafico mostra quante volte i tuoi contenuti sono stati ricondivisi, giorno per giorno. "
145
+ "Le condivisioni sono un ottimo segno: il tuo pubblico apprezza e diffonde i tuoi messaggi!"
146
  ),
147
  "calculation_steps": [
148
+ "1. Analizziamo i tuoi post e contiamo le condivisioni giornaliere.",
149
+ "2. Sommiamo le condivisioni di ogni giorno.",
150
+ "3. Una linea ti mostra l'andamento delle condivisioni. Scopri cosa spinge gli altri a parlare di te!"
 
 
 
151
  ]
152
  },
153
  "comments_over_time": {
154
+ "title": "Si Scatena la Discussione? Commenti nel Tempo",
155
  "description": (
156
+ "I tuoi post stimolano il dibattito? Questo grafico traccia il numero totale di commenti ricevuti, giorno per giorno. "
157
+ "I commenti indicano un forte coinvolgimento e interazione attorno ai tuoi contenuti."
158
  ),
159
  "calculation_steps": [
160
+ "1. Guardiamo i tuoi post e contiamo i commenti ricevuti ogni giorno.",
161
+ "2. Sommiamo i commenti giornalieri.",
162
+ "3. Una linea ti mostra come variano i commenti nel tempo. Ideale per capire cosa fa parlare il tuo pubblico!"
 
 
 
163
  ]
164
  },
165
  "comments_sentiment_breakdown": {
166
+ "title": "Che Aria Tira nei Commenti? Sentiment dei Commenti",
167
  "description": (
168
+ "Come reagisce il pubblico nei commenti? Questa torta colorata mostra la distribuzione dei sentimenti (positivo, negativo, neutro) espressi. "
169
+ "Un modo per capire più a fondo le reazioni del tuo pubblico."
170
  ),
171
  "calculation_steps": [
172
+ "1. Analizziamo i commenti ai tuoi post.",
173
+ "2. Interpretiamo il sentiment di ciascun commento.",
174
+ "3. Contiamo quanti commenti sono positivi, negativi o neutri.",
175
+ "4. Ti mostriamo una torta dove ogni fetta colorata rappresenta la percentuale di un tipo di sentiment. Vedi subito l'umore dominante!"
176
  ]
177
  },
178
  "post_frequency": {
179
+ "title": "Ogni Quanto Pubblichi? Frequenza dei Post",
180
  "description": (
181
+ "Qual è il tuo ritmo di pubblicazione? Questo grafico mostra quanto spesso pubblichi, raggruppando i post per giorno, settimana o mese. "
182
+ "Aiuta a valutare la tua costanza e la pianificazione dei contenuti."
183
  ),
184
  "calculation_steps": [
185
+ "1. Prendiamo le date di tutti i tuoi post.",
186
+ "2. Raggruppiamo i post per giorno, settimana o mese (a seconda della scelta).",
187
+ "3. Contiamo quanti post hai fatto in ciascun periodo.",
188
+ "4. Ti mostriamo i risultati con un grafico a linee (per i giorni) o a barre (per settimane/mesi). Così vedi subito il tuo ritmo!"
 
 
189
  ]
190
  },
191
  "content_format_breakdown": {
192
+ "title": "Che Tipo di Contenuti Usi? Formati dei Post",
193
  "description": (
194
+ "Quali formati preferisci? Questo grafico a barre mostra quanti dei tuoi post sono articoli, immagini, video, ecc. "
195
+ "Ti aiuta a capire quali tipi di contenuto utilizzi di più nella tua strategia."
196
  ),
197
  "calculation_steps": [
198
+ "1. Guardiamo al formato di ogni tuo post (es. testo, immagine, video).",
199
+ "2. Contiamo quanti post appartengono a ciascun formato.",
200
+ "3. Ti mostriamo delle barre colorate: ogni barra è un formato e la sua altezza dice quanti post di quel tipo hai fatto."
201
  ]
202
  },
203
  "content_topic_breakdown": {
204
+ "title": "Di Cosa Parli? Argomenti Principali dei Post",
205
  "description": (
206
+ "Quali sono i temi caldi dei tuoi contenuti? Questo grafico a barre orizzontali mostra gli argomenti più frequenti nei tuoi post, basandosi sulle etichette che hai assegnato. "
207
+ "Evidenzia i temi chiave della tua comunicazione (di solito i primi 15)."
208
  ),
209
  "calculation_steps": [
210
+ "1. Analizziamo le etichette o 'tag' che hai associato ai tuoi post.",
211
+ "2. Contiamo quante volte compare ogni etichetta/argomento.",
212
+ "3. Selezioniamo gli argomenti più popolari (i top N).",
213
+ "4. Ti mostriamo delle barre orizzontali: ogni barra è un argomento e la sua lunghezza indica quanto ne parli. Facile capire i tuoi cavalli di battaglia!"
 
 
 
214
  ]
215
  }
216
+ }