Visual is a Javascript library for data visualization developed by the Statistical Institute of Catalonia (Idescat). It is based on popular open source solutions. Visual offers a simple interface that encapsulates the complexity of these solutions for the most common chart types.
Visual should expose user interaction to allow applications built on top of it to act accordingly (update the chart, synchronize the state of a companion element, etc.).
Implementation: Probably, a new property will allow developers to provide a reference to the window where the interaction data should be sent to and maybe also the events (click, hover) that should fire the message dispatch.
Take into account, though, that the footer can be parsed incorrectly (and shown as a single paragraph one) if Paragraph1 (or Paragraph2) contains : or '. Please use : and ' to avoid this issue.
Example:
["Note: Lorem ipsum.","Source: Cicero's De finibus bonorum et malorum."]
Mixed use of quotes (" and ') is not handled correctly in "by" and "time" when they are arrays.
This issue does not affect the Visual library: it only affects the Visual Viewer. The Visual Viewer is only an experimental tool to let you test the Visual library.
The location of the legend can conflict with the map. Probably a hidden legend is better than the current solution: add a small clickable icon to show the legend?