Hello,
Can anyone help me out to develop sparkline which uses column series ?
Please provide me code snippet to develop sparkline view.
Thanks..
In the documentation there is a code sample showing how to hook up a sparkline view to data
http://help.infragistics.com/iOS/2013.2/?page=IGSparklineView_Adding_Sparkline_Chart_View.html
The only step it might leave out is setting the .displayType of the IGSparklineView to IGSparklineDisplayTypeColumn, but Column is the default value so you wouldn't really need to set it.
http://help.infragistics.com/iOS/2013.2/?page=IGSparklineView_Display_Types.html
Hello Darrell,
The demo is working perfectly.
But my question is can i set x-axis and y-axis in sparkline series as we have in column series in IGCategoryDataSourceHelper ?
Because my ultimate goal is, i want to display column series which have two values. i.g. +ve, and -ve with different colour.
Please give me some suggestion.
If you want to set a different brush for the negative and positive values you would need to set the .brush and .negativeBrush properties.
Yes darrell you are absolutely right. Actually i have read this properties in api. But my question is i want to set x-axis and y-axis in sparkline seires.
Because i refereed api for sparkline, however i didn't found any method for add axes in sparkline series.
Is there any delegate method in sparkline series like IGChartView having
- (NSString *)chartView:(IGChartView *)chartView labelForAxis:(IGAxis *)axis withItem:(NSObject *)item
for setting x and y axis label ?
Thanks.
No there isn't a delegate method that would do that for the sparkline. The sparkline is designed to be pretty stripped down.