proteic
proteic copied to clipboard
Annotations and events
Proteic should be able to display contextual information about the data. Right now it can display tooltips, althought they have to be implemented by the user using mouse events in the configuration object. The next step would be to support static annotations defined by the user (labels, threshold/benchmark lines, regions) as well as event annotations send by the server. The following are some proposals:
Annotations API
proteic.Linechart(data, config).annotations({
threshold: {
key: 'y',
value: '120'
}
});
Events
{key:'serie2', x:1, y:9001, event: { type: 'warning', text: 'It's over 9000!' }},
{key:'serie2', x:2, y:4},
{key:'serie2', x:3, y:20},
Nice!
But just a question regarding to the first datum you've proposed:
{key:'serie2', x:1, y:9001, event: { type: 'warning', text: 'It's over 9000!' }},
If the value is over 9000, should it be included like a static event, or should it be automatically calculated through a threshold defined by the user? I think that in the case of ranges / thresholds events should be defined by the user, right?
Already implemented and only available through linecharts. Should annotations and events be interesting for more visualizations? @jorgeyp