I have integrated LineChart in my project and it is working fine although I am not able to have non-float integer values in my graph. I have attached a screenshot for the same. I have added these settings for xlabel.

ChartXAxis *xAxis = leadsChartView.xAxis;
xAxis.labelPosition = XAxisLabelPositionBottom;
xAxis.labelFont = [UIFont fontWithName:@"HelveticaNeue-Light" size:12.f];
xAxis.labelTextColor = [UIColor blackColor];
xAxis.drawAxisLineEnabled = YES;
xAxis.drawGridLinesEnabled = YES;
xAxis.centerAxisLabelsEnabled = NO;
xAxis.gridColor = [[UIColor blackColor] colorWithAlphaComponent:0.1];
xAxis.labelRotationAngle = 25;
xAxis.granularityEnabled = YES;
xAxis.granularity = 1.0;
xAxis.forceLabelsEnabled = YES;
@danielgindi please help soon
use formatter
//Current Values what you want
let format = NumberFormatter()
format.numberStyle = NumberFormatter. none
let formatter = DefaultValueFormatter(formatter: format)
xAxis.setValueFormatter(formatter)
https://developer.apple.com/reference/foundation/numberformatter.style/1408907-none
I am using Objective C and this sets the xaxis values formatter not what is shown in the graph.
Check out ChartsDemo. There are plenty of them.
I have solved the issue. Here is the code.
```
set1 = [[LineChartDataSet alloc] initWithValues:values label:@""];
set1.drawIconsEnabled = NO;
set1.valueFormatter = [[SetValueFormatter alloc] init];
In SetValueFormatter
@interface SetValueFormatter : NSObject
@end
@implementation SetValueFormatter
@end
```
Hope it helps other people as well.
I have solved the issue. Here is the code.
```
set1 = [[LineChartDataSet alloc] initWithValues:values label:@""];
set1.valueFormatter = [[SetValueFormatter alloc] init];
In SetValueFormatter
@interface SetValueFormatter : NSObject
@implementation SetValueFormatter
It was this earlier

and now I have achieved this

Hi,
I am using the below code :
-(NSString * _Nonnull)stringForValue:(double)value entry:(ChartDataEntry * _Nonnull)entry dataSetIndex:(NSInteger)dataSetIndex viewPortHandler:(ChartViewPortHandler * _Nullable)viewPortHandler{
if(_SelectedGraph.type==FPStationGraphTypeWind){
return [NSString stringWithFormat:@"%@",[_SelectedGraph.arrayDirections objectAtIndex:dataSetIndex]];
}
else{
return [NSString stringWithFormat:@"%@",@""];
}
}
LineChartDataSet *dataSet = [[LineChartDataSet alloc]initWithValues:arrayXYValue label:_SelectedGraph.graphLineText];
[dataSet setValueColors:@[[UIColor whiteColor]]];
[dataSet setValueFont:[UIFont fontWithName:@"HelveticaNeue" size:13.0]];
dataSet.valueFormatter = self;
but it did not get called on this method.
Please suggest as it was running before
Most helpful comment
It was this earlier
and now I have achieved this
