如何在mimchart库iPhone中绘制条形图和线图?

时间:2013-07-31 08:51:14

标签: ipad

你能建议我吗?我的代码在这里........

mWallGraph=[[MIMWallGraph alloc]initWithFrame:CGRectMake(50, 200, self.view.frame.size.width-90, self.view.frame.size.width * 0.6)];
mWallGraph.delegate=self;
mWallGraph.anchorTypeArray=[NSArray arrayWithObjects:[NSNumber numberWithInt:NONE],
                            [NSNumber numberWithInt:NONE],
                            [NSNumber numberWithInt:NONE],
                            nil];

mWallGraph.xTitleStyle=X_TITLES_STYLE3;
[mWallGraph drawMIMWallGraph];
[self.view addSubview:mWallGraph];

为值定义了所有委托方法。

1 个答案:

答案 0 :(得分:0)

你可以试试这个

myBarChart=[[MIMBarGraph alloc]initWithFrame:CGRectMake(50, 20, self.view.frame.size.width-50, self.view.frame.size.width * 0.3)];
            myBarChart.delegate=self;
            myBarChart.xTitleStyle=XTitleStyle3;
            //myBarChart.margin=MIMMarginMake(30, 40, 0, 50);
            myBarChart.gradientStyle=VERTICAL_GRADIENT_STYLE;

            [myBarChart drawBarChart];
            [self.view addSubview:myBarChart];

或者您可以使用core-plot library在您的应用中显示图形而不是Mim