Not getting the open/close marks on a TKChartOhlcSeries

2 posts, 0 answers
  1. Jeffrey
    Jeffrey avatar
    2 posts
    Member since:
    Oct 2010

    Posted 26 Jan 2015 Link to this post

    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?
  2. Yoanna
    Admin
    Yoanna avatar
    44 posts

    Posted 27 Jan 2015 Link to this post

    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.

     
  3. DevCraft banner
Back to Top