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

StockChart Navigator current selection range

4 Answers 255 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Sreenath
Top achievements
Rank 1
Sreenath asked on 04 Mar 2013, 07:09 AM
HI,

I am working on Stock chart, and i am trying to get current selected range from and to values in date format. I used selectEnd event to get those values. But i am getting from and to as number between 0 and 154. this is example response data from selectEnd event.

{
form  92
sender  object
to 138 }

I don't know what these numbers are representing, i am trying to get from and to as dates from last 3 days. Please help me in finding current selected start and end date, it is very important and urgent requirement to me.

thank you

4 Answers, 1 is accepted

Sort by
0
Sreenath
Top achievements
Rank 1
answered on 05 Mar 2013, 06:51 AM
Hi Kendo,

Please help us :)

thank you
0
Accepted
Iliana Dyankova
Telerik team
answered on 06 Mar 2013, 08:34 AM
Hi Sreenath,

Generally speaking your approach is correct, however there is a bug in the current version of Kendo UI StockChart - therefore you get the illustrated outcome. I forwarded the problem to our developers for further investigation and we will do their best to provide a fix as soon as possible. 

Meanwhile, as a possible workaround for your scenario you can get the "from / to" dates using the following code snippet: 
$("#stock-chart").kendoStockChart({
   //....
   selectEnd: onSelectEnd
});
  
function onSelectEnd(e) {
   var stockchart = $("#stock-chart").data("kendoStockChart");
   var navigatorFrom = stockchart._navigator.options.select.from;
   var navigatorTo = stockchart._navigator.options.select.to;
   console.log(navigatorFrom);
   console.log(navigatorTo);
}  

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sreenath
Top achievements
Rank 1
answered on 07 Mar 2013, 05:26 AM
Hi Nikolova,

thank you for your answer...

Here is one suggestion.. In kendo forums you(kendo) mentioned that you are going to make navigator as a separate graph. It is a nice idea. Here i just want to suggest one option to navigator, if you give dependentGraphs (or something else) as an array, then we can give names of dependent graphs in that array. When ever navigator selection is changed then it needs to check dependent Array and needs to refresh the dependent graphs with new filter data.

waiting for new navigator..
thank you
0
Iliana Dyankova
Telerik team
answered on 07 Mar 2013, 12:02 PM
Hello Sreenath,

Thank you for the suggestion. I will suggest sending it as a feature request at our UserVoice portal - this way the community would be able to evaluate it and if the suggestion gains popularity we will consider its implementation. The more votes collects, the higher priority will have. 

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Sreenath
Top achievements
Rank 1
Answers by
Sreenath
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or