Open geogerar opened 10 years ago
Hi @geogerar I'll look into it and come back to you. Cheers, Matías.
Thank you very much Matias I am waiting for your reply! Thanks again
George Gerardis
On Tue, Oct 21, 2014 at 4:08 AM, Matias Rojas notifications@github.com wrote:
Hi @geogerar https://github.com/geogerar I'll look into it and come back to you. Cheers, Matías.
— Reply to this email directly or view it on GitHub https://github.com/mrojas/MRBarChart/issues/2#issuecomment-59865036.
Γιώργος Ν. Γεράρδης
I changed in your MRBrrChartcell.m and it worked:
(void)displayBar:(BOOL)animated { CGRect frame = _barView.frame;
if (animated) { CGFloat initialY = _barHeight; frame.origin.y = initialY; frame.size.height = 0.0; _barView.frame = frame;
frame.origin.y = _barHeight - (1.0 - _value) * _barHeight;
frame.size.height = (1.0 - _value) * _barHeight;
[UIView animateWithDuration:0.3 animations:^{
_barView.frame = frame;
} completion:^(BOOL finished) {
_label.hidden = _label.text.length == 0;
}];
} else { frame.size.height = (_value) * _barHeight; frame.origin.y = _barHeight - frame.size.height; NSLog(@"value %f", _value); NSLog(@"origin y %f", frame.origin.y);
NSLog(@"height : %f", frame.size.height);
_barView.frame = frame;
_label.hidden = _label.text.length == 0;
} } also thanks for this library. sorry for my bad English
Hello, First I would like to thank you for your excellent tool. I propose to take a look in the height of bars depending the values. The height is NOT analogous the value..... For example a BAR with value of 50 is higher of another with value of 60..... If you can please correct this.....
Thank you very much
George Gerardis