我需要在兴趣,原则和年份之间制作图表。从webservices我得到以下值
[
{
"Year": 1,
"beginbal": 230000,
"endbal": 223725.97,
"interestY": 559.31,
"paymentY": 13088.23
}, {
"Year": 2,
"beginbal": 223725.97,
"endbal": 217261.1,
"interestY": 543.15,
"paymentY": 13088.23
}, {
"Year": 3,
"beginbal": 217261.1,
"endbal": 210599.6,
"interestY": 526.5,
"paymentY": 13088.23
}, {
"Year": 4,
"beginbal": 210599.6,
"endbal": 203735.49,
"interestY": 509.34,
"paymentY": 13088.23
}, {
"Year": 5,
"beginbal": 203735.49,
"endbal": 196662.59,
"interestY": 491.66,
"paymentY": 13088.23
}, {
"Year": 6,
"beginbal": 196662.59,
"endbal": 189374.57,
"interestY": 473.44,
"paymentY": 13088.23
}, {
"Year": 7,
"beginbal": 189374.57,
"endbal": 181864.88,
"interestY": 454.66,
"paymentY": 13088.23
}, {
"Year": 8,
"beginbal": 181864.88,
"endbal": 174126.77,
"interestY": 435.32,
"paymentY": 13088.23
}, {
"Year": 9,
"beginbal": 174126.77,
"endbal": 166153.3,
"interestY": 415.38,
"paymentY": 13088.23
}, {
"Year": 10,
"beginbal": 166153.3,
"endbal": 157937.3,
"interestY": 394.84,
"paymentY": 13088.23
}
]
我必须在余额金额和年份之间绘制图表,差距为5年级。第10年级。但是我无法找到如何开始使用上述值实现图表的方式。如果有人对图表有所了解,请帮助我。
提前致谢。
答案 0 :(得分:1)
看看Core Plot coreplot。它可以绘制各种信息。当Core Plot使用数组进行绘图时,您需要将Web信息放入数组中。祝好运。他们在网站上也有很多例子。