Hi,
Based on this example: http://jsbin.com/orabax/8/edit
How would I define a second valueaxis dynamically, if I dynamically added a second series to the chart through the datasource? And how would the series know which axis to reference.
I have a situation where I am adding new series to the chart when a user clicks its name in a series list. However, some of the series in the list have different unit values and needs to be displayed in the chart but on another valueaxis (multiaxis). How would I accomplish this dynamically. I can already update the chart dynamically with different series of the same unit value, which correctly places them on the same valueaxis. I do this by adding the new series to my datasource, then I update the chart like so
function createChart() {
$("#chart").kendoStockChart(
// Create a deep copy of the configuration
// for each Chart instance.
$.extend(true, {}, config)
);
$("#chart").data("kendoStockChart").dataSource.data(myDataSource);
}
Thanks,
Tonih
Based on this example: http://jsbin.com/orabax/8/edit
How would I define a second valueaxis dynamically, if I dynamically added a second series to the chart through the datasource? And how would the series know which axis to reference.
I have a situation where I am adding new series to the chart when a user clicks its name in a series list. However, some of the series in the list have different unit values and needs to be displayed in the chart but on another valueaxis (multiaxis). How would I accomplish this dynamically. I can already update the chart dynamically with different series of the same unit value, which correctly places them on the same valueaxis. I do this by adding the new series to my datasource, then I update the chart like so
function createChart() {
$("#chart").kendoStockChart(
// Create a deep copy of the configuration
// for each Chart instance.
$.extend(true, {}, config)
);
$("#chart").data("kendoStockChart").dataSource.data(myDataSource);
}
Thanks,
Tonih