我需要显示条形图。我还没有发现的主要问题是如何显示带有子栏的栏。所以第一个条由底部的绿色条(y 为 5 分)和黄色条(y 为 3 分)组成。第二个条由底部的粉红色条组成(y 为 3 分)
所以我的条没有堆叠。- 我什至可以没有下一个 x 的条,但我可以在一个条中以不同的顺序有 3 个子条。
通常,下图显示了我需要哪些条形图。 通常,下图显示了我需要哪些条形图。
我需要显示条形图。我还没有发现的主要问题是如何显示带有子栏的栏。所以第一个条由底部的绿色条(y 为 5 分)和黄色条(y 为 3 分)组成。第二个条由底部的粉红色条组成(y 为 3 分)
所以我的条没有堆叠。- 我什至可以没有下一个 x 的条,但我可以在一个条中以不同的顺序有 3 个子条。
通常,下图显示了我需要哪些条形图。 通常,下图显示了我需要哪些条形图。
Use a different bar plot for each fill pattern. Set barBasesVary
to YES
on each plot so you can control the ends of bars individually. The plot will query the datasource for three values for each bar: the location (the horizontal position for vertical bars), the tip (the top) value, and the base (the bottom) value. The "Vertical Bar Chart" demo in the Plot Gallery example app shows a simple example of this technique.