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

Candlestick chart not "zoomed" in

2 Answers 63 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Dragan
Top achievements
Rank 1
Dragan asked on 05 Feb 2015, 03:40 PM
Hi,

we're having trouble rendering nice Candlestick chart in some cases.

Specifically, for some values passed, chart is not "zoomed" in to better see difference between points but rendered from the '0' on value axis instead. For other cases, it's behaving as expected. To better illustrate, please see following dojo: http://dojo.telerik.com/AnOhe and see that value axis starts from '0' where it could start from '18' for example.

Is there a way to force chart to do this, instead of calculating valueAxis.max and valueAxis.min manually?

Thanks,

Dragan

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 09 Feb 2015, 01:10 PM
Hello,

The value axis can be forced into a "narrow" mode in which it will not automatically expand to show zero.
This is controlled via the narrowRange property.
valueAxis: {
    narrowRange: true
}


I've updated the snippet to include this setting.
I hope this helps.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Dragan
Top achievements
Rank 1
answered on 10 Feb 2015, 01:35 PM
Hi,

thanks a lot, this is it.
Tags
Charts
Asked by
Dragan
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Dragan
Top achievements
Rank 1
Share this question
or