In order to use the Mozaïk twitter widgets, you must configure its client.
key | description |
---|---|
consumerKey |
twitter consumer key |
consumerSecret |
twitter consumer secret |
accessTokenKey |
twitter access token key |
accessTokenSecret |
twitter access token secret |
{
//…
api: {
twitter: {
consumerKey: 'xxxxx',
consumerSecret: 'xxxxx',
accessTokenKey: 'xxxxx',
accessTokenSecret: 'xxxxx'
}
}
}
Display a pie chart showing stats for a given list of hashtags
key | required | description |
---|---|---|
layout |
no | layout (legends placement), can be top right bottom left , default is right |
hashtags |
yes | a list of hashtags with an associated color |
{
type: 'twitter.hashtags_pie',
layout: 'right',
hashtags: [
{ color: '#6bc2c8', text: 'apple' },
{ color: '#5f8cc0', text: 'google' },
{ color: '#525487', text: 'twitter' },
{ color: '#376aa2', text: 'facebook' },
{ color: '#383b72', text: 'instagram' }
],
columns: 2, rows: 1, x: 0, y: 0
}