Safari HTML5 Canvas Guide: Creating Charts and Graphs

Safari HTML5 Canvas Guide: Creating Charts and Graphs

Bar graphs are similar to data plots, but each sample is graphed as a rectangle scaled to the height or width of the sample.

The example in Listing 10-4 graphs data as vertical bars with a text label floating over each bar, as shown in Figure 10-2.

Figure 10-2  Sample bar graph
原文地址:https://www.cnblogs.com/lexus/p/3741297.html