Commit f4ecf6f2 authored by Alberto Pascual's avatar Alberto Pascual
parents 9564ae46 91541d60
`<tweet-chart>` is a web component designed to visualize Tweets and visualize each Tweet sentiment.
Tweet background is coloured green if tweet's text is posive, red if it is negative or grey if neutral.
This web component obtains data from an elasticSearch index.
### Usage
This web component accepts the following parameters:
```html
<tweet-chart
query="{{query}}"
index="<!-- your elasticsearch index -->"
subindex="<!-- your elasticsearch doc-type -->"
field="text"
fields='["sentiment", "text"]'
filters="{{filters}}"
icon='face'
param="{{param}}">
</tweet-chart>
```
### Installation
This web component is available in bower.
```bash
$ bower install tweet-chart
```
This command will install it inside `bower_components` folder
Remember to edit your `elements.html` with this component.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment