Link Search Menu Expand Document

Constructor: stats.storyStats

Back to constructors index

Contains statistics about a story.

Attributes:

NameTypeRequiredDescription
views_graphStatsGraphYesA graph containing the number of story views and shares
reactions_by_emotion_graphStatsGraphYesA bar graph containing the number of story reactions categorized by “emotion” (i.e. Positive, Negative, Other, etc…)

Type: stats.StoryStats

Example:

$stats_storyStats = ['_' => 'stats.storyStats', 'views_graph' => StatsGraph, 'reactions_by_emotion_graph' => StatsGraph];