This is a migrated thread and some comments may be shown as answers.

Not getting the open/close marks on a TKChartOhlcSeries

1 Answer 6 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeffrey
Top achievements
Rank 1
Jeffrey asked on 26 Jan 2015, 11:12 PM
I'm creating a TKChartOhlcSeries using an array of TKChartFinancialDataPoint. The data is graphed but the data for each data is a simple vertical line...without any open/close ticks. Is there a some palette or style that needs to be set?

1 Answer, 1 is accepted

Sort by
0
Yoanna
Telerik team
answered on 27 Jan 2015, 04:34 PM
Hello, Jeffrey,

Thank you for contacting us.

To calculate the correct width of every OHLC bar we need to know what is the maximum amount of bars which will fit on the plot area. To calculate this amount TKChart uses the minorTickIntervalUnit property of TKChartDateTimeAxis, which should be set to a unit corresponding to your data points interval. Consider the code snippet below:
TKChartDateTimeAxis *xAxis = (TKChartDateTimeAxis *)chart.xAxis;
xAxis.minorTickIntervalUnit = TKChartDateTimeAxisIntervalUnitHours;

I hope this helps, if you have further questions do not hesitate to contact us.

Regards,
Yoanna
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
Jeffrey
Top achievements
Rank 1
Answers by
Yoanna
Telerik team
Share this question
or