0

你能建议我这样做吗?我的代码在这里…………

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];

所有委托方法都是为值定义的。

4

1 回答 1

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 库来在您的应用程序中显示图形而不是 Mim

于 2013-07-31T10:22:11.433 回答