4

My requirement is based on selection of API functions the graph type should be change .i.e like columns, line, bar... as it was demonstrated in Kendo UI examples. http://demos.kendoui.com/dataviz/api/index.html Is it possible to do the same with stock chart. When I select only type column the actual problem is getting. The navigator scrolling to not moving till end in column type. Here is the js bin I worked.

http://jsbin.com/ilemel/2/edit

Is there any reason why that was not supporting in type column.

the problem is with the column type and is it possible to set the navigator to type area default and the chart type should change based on selected type.

Any help would be appreciated.

kmp
  • 10,535
  • 11
  • 75
  • 125
kvs
  • 466
  • 1
  • 10
  • 24
  • And is it possible to set the navigator series type to area .Means what ever we checked the type like column line or bar... navigator type should be area – kvs Apr 12 '13 at 07:02

1 Answers1

0

Changing the series type in the navigator on the fly is not supported. This is a limitation that we'd like to remove in future versions.

For the moment, you'll need to recreate the stock chart in order to change the chart type.

I've updated the code sample here: http://jsbin.com/ilemel/31/edit

Note that I keep a "master" configuration and make a copy of it for each instance:

var config = { ... };

function createChart() {
    $("#chart").kendoStockChart(
        // Create a deep copy
        $.extend(true, {}, config)
    );
}

This is the recommended approach for reusing configuration objects, as the chart expands some properties in place.

Tsvetomir Tsonev
  • 105,726
  • 5
  • 27
  • 34