Anychart is a Flash object that expects a XML structure as input data.
This can easily be customised in Apex using a new theme region for dynamic PL/SQL, or static XML text.
The PL/SQL code generates a XML chart structure to graph.
Call the new region AnychartGraph for example. The HTML contents of the region needs to be "3 pieces" of HTML code.
1. A hidden text area that contains the #BODY# tag of the region. The PL/SQL code executed writes its XML contents into this tag, and thus into the HTML textarea element.
2. A div that will be used as the canvas/GDI by Anychart for drawing the graph.
It is straightforward to implement. And allows you to run any queries and transform the results into Anychart XML for graphing (doing dashboard charts, stacked line charts, mixing spline and bar charts, etc).