-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to change ValueFormat of BarChartDataSet. I can't change it. #2764
Comments
If you want to add a comma, you can do something like this, but it's written in Swift, so you have to convert it to Objective-C:
|
@seenoevo -------- please give some hint what value I have to passed in id _Nullable |
search for the demo contains a lot of useful information if you just search around ;) |
@seenoevo Thanks I found the solution |
@patelmonika006 great!....please close if resolved |
Hi @seenoevo and @IAmMonika Thanks&Regards |
I want to set BLUE Box value Format same as RED Box. But I can't change Value format of BarChartDataSet
(void)setDataCount:(int)count range:(double)range ValuesArr:(NSMutableArray*)valArr
{
BarChartDataSet *set1 = nil;
if (_chartView.data.dataSetCount > 0)
{
set1 = (BarChartDataSet *)_chartView.data.dataSets[0];
set1.values = valArr;
[_chartView.data notifyDataChanged];
[_chartView notifyDataSetChanged];
}
else
{
set1 = [[BarChartDataSet alloc] initWithValues:ValuesArr label:@"2014"];
[set1 setColors:@[Blue_Color,Yellow_Color,Red_Color]];
_chartView.barData.dataSets=@[[UIColor clearColor]];
set1.drawIconsEnabled = NO;
NSMutableArray *dataSets = [[NSMutableArray alloc] init];
[dataSets addObject:set1];
BarChartData *data = [[BarChartData alloc] initWithDataSets:dataSets];
[data setValueFont:[UIFont fontWithName:Font_Regular size:(isIphone) ? 10.f : 22.0f]];
data.barWidth = 0.7;
_chartView.data = data;
}
[super handleOption:@"animateY" forChartView:_chartView];
}](url)
The text was updated successfully, but these errors were encountered: