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

categoryAxis lables and stockchart

2 Answers 33 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Kyaw
Top achievements
Rank 1
Kyaw asked on 14 Dec 2015, 07:43 PM

Hi,

When we display 365 data points (yearly data) in stockchart, candles are skipping many days. Can we display all the daily candles in any view (regardless of viewing by monthly, yearly, weekly)?

In yearly view (365 candles), categoryAxis labels should still skip the dates to avoid the overlapping. But the candles need to display daily.

Right now, to see all the candles, I have to select monthly or weekly view with navigator. Is there anyway to achieve this?

Thanks so much.

Kyaw

2 Answers, 1 is accepted

Sort by
0
Kyaw
Top achievements
Rank 1
answered on 15 Dec 2015, 02:07 PM

Hi,

 

If I do this, chart will display all candles, and X axis will skip 7 days.

baseUnit: "days",
    labels: {
       rotation: "-90",
       step: 7
}

That looks good, but I'd like to see all labels when we zoom into weekly views using navigator.

Thanks,
Kyaw

0
Kyaw
Top achievements
Rank 1
answered on 15 Dec 2015, 02:39 PM

Actually, I found this http://www.telerik.com/forums/how-to-catch-the-event-of-stockchart-navigator-range-change

I catch those events and set the labels to skip accordingly. It looks good now.

Thanks.

 

Tags
Charts
Asked by
Kyaw
Top achievements
Rank 1
Answers by
Kyaw
Top achievements
Rank 1
Share this question
or