官术网_书友最值得收藏!

  • Learning jqPlot
  • Scott Gottreu
  • 289字
  • 2021-09-03 09:49:43

Understanding area and stacked area charts

Area charts come in two varieties. The default type of area chart is simply a modification of a line chart. Everything from the data point on the y axis all the way to zero is shaded. In the event your numbers are negative, then the data above the line up to zero is shaded in. Each data series you have is laid upon the others. Area charts are best to use when we want to compare similar elements, for example, sales by each division in our company or revenue among product categories.

The other variation of an area chart is the stacked area chart. The chart starts off being built in the same way as a normal area chart. The first line is plotted and shaded below the line to zero. The difference occurs with the remaining lines. We simply stack them. To understand what happens, consider this analogy.

Each shaded line represents a wall built to the height given in the data series. Instead of building one wall behind another, we stack them on top of each other. What can be hard to understand is the y axis. It now denotes a cumulative total, not the individual data points.

For example, if the first y value of a line is 4 and the first y value on the second line is 5, then the second point will be plotted at 9 on our y axis. Consider this more complicated example: if the y value in our first line is 2, 7 for our second line, and 4 for the third line, then the y value for our third line will be plotted at 13. That's why we need to compare similar elements.

主站蜘蛛池模板: 吴堡县| 明星| 武清区| 洪泽县| 榆社县| 山东省| 瑞金市| 通河县| 类乌齐县| 延长县| 夏津县| 孝感市| 调兵山市| 外汇| 美姑县| 靖江市| 平山县| 建瓯市| 潮安县| 中宁县| 富裕县| 张北县| 泸溪县| 楚雄市| 伊金霍洛旗| 黔西县| 沙洋县| 莱西市| 漠河县| 新巴尔虎左旗| 剑阁县| 宁明县| 安多县| 昆明市| 习水县| 栖霞市| 大悟县| 仙游县| 东平县| 公安县| 通许县|