From 554f93f3d3c3fd2be1ee84e55bfeddaeaaf60436 Mon Sep 17 00:00:00 2001 From: Tao Zhang Date: Mon, 12 May 2014 23:41:25 -0400 Subject: [PATCH] Update sample code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 89bc565e3..1b6d7440b 100644 --- a/README.md +++ b/README.md @@ -63,14 +63,14 @@ To initialize a JBBarChartView, you only need a few lines of code (see be At a minimum, you need to inform the data source how many bars are in the chart: - - (NSInteger)numberOfBarsInBarChartView:(JBBarChartView *)barChartView + - (NSUInteger)numberOfBarsInBarChartView:(JBBarChartView *)barChartView { return ...; // number of bars in chart } Secondly, you need to inform the delegate the height of each bar (automatically normalized across the entire chart): - - (CGFloat)barChartView:(JBBarChartView *)barChartView heightForBarViewAtAtIndex:(NSInteger)index + - (CGFloat)barChartView:(JBBarChartView *)barChartView heightForBarViewAtAtIndex:(NSUInteger)index { return ...; // height of bar at index }