proteic icon indicating copy to clipboard operation
proteic copied to clipboard

Annotations and events

Open jorgeyp opened this issue 7 years ago • 2 comments

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},

jorgeyp avatar Mar 23 '17 10:03 jorgeyp

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?

0xNacho avatar Mar 23 '17 10:03 0xNacho

Already implemented and only available through linecharts. Should annotations and events be interesting for more visualizations? @jorgeyp

0xNacho avatar Jun 14 '17 20:06 0xNacho