Please refer to the following imagesÂ

Image 1 -Â

Image 2 -Â

Image 3Â -Â

I have inserted 3 images corresponding to three graph views . Please focus on the bottom half of the screen which displays the graphÂ

Image 1 : This is a daily graph view. The X axis needs to show every 15 minutes starting from 12 AM to 12 AM of the day . The Y axis plots the corresponding value (In this graph its blood pressure values taken at specific intervals of the day ) .The requirement is on the x-axis I will need to display the points as 12AM , 12:15AM, 12:30AM â€¦ 11:45PM 12:00AM (The entire X-axis needs to show all these points ) . On the Y axis only those points will be plotted where there is a reading for the corresponding x-axis. And then all the points whould be connected via the line. (So allthough the X-axis shows all data points, the y-axis is plotted only for specific points on the x-axis)

Image 2 - Weekly view . The X-axis should plot the 7 days of the week and y axis the BP readings taken on the days. So if a specfic day of the week does not have a reading we will not have a datapoint for that day but the xaxis should still show the point. For eg if I do not have a reading on January 28th , then the x axis will still show (Sun, Mon, tue , wed , thur , fri Â sat ,) [Corresponding to this week] and y axis will only have say 3 readings (assuming I got data only for 3 days of the week) .Â

My Earlier code was :Â

SChartCategoryAxis *xAxis = [[SChartCategoryAxisalloc] init];

Â Â xAxis.rangePaddingHigh = @(0.5);

Â Â xAxis.rangePaddingLow = @(0.5);

Â Â // xAxis.style.interSeriesPadding = @0;

Â Â xAxis.style.majorTickStyle.showTicks = YES;

Â Â Â _shinobiChart.xAxis = xAxis;

SChartAxis *yAxis = [[SChartNumberAxisalloc] init];

Â Â yAxis.rangePaddingHigh = @1.0;

Â Â Â _shinobiChart.yAxis = yAxis;

//Getting the datapoint

SChartDataPoint* datapoint = [selfdataPointForValue:[NSNumbernumberWithInt:dayNumber] andValue: xx];

datapoint.xValue = @â€śMonâ€ť //Sample day just for demo

With this what happened was , if in the week I had 2 readings on Monday and Thursday then the x-axis used to plot only 2 days and the remaining days (Tuesday , Wendnesday , Friday , Saturday , Sunday) was missing. Instead we need to show all 7 days on the x-axis and hence the requirement to add the nil value which always failed.

Sorry about the long post . Hope I have been able to explain the issue . Have been sitting on it for quite some time so any help will be highly appreciated