Home Demos

A graph with annotations

This example demonstrates how to overlay labels on top of graphs.

The annotations setting on a JSPlot_Graph instance should be supplied an array of instances of the JSPlot_Label_Text and JSPlot_Label_Arrow classes. These overlay text and arrows over the graph. The coordinates for each item can be specified relative to the graph axes.

Source code for this page



        

Follow