4

I need to set a Kendo UI stock chart category axis and value axis titles dynamically using options or setoptions.

Can any one provide me a working example?

Nic
  • 12,220
  • 20
  • 77
  • 105
user3475088
  • 43
  • 1
  • 4

1 Answers1

1

You can dynamically change the titles like this:

var stockChart = $("#stock-chart").data("kendoStockChart");
stockChart.options.valueAxis[0].title.text = "Your new value axis title here";
stockChart.options.categoryAxis[0].title.text = "Your new column axis title here";
stockChart.refresh();
Nic
  • 12,220
  • 20
  • 77
  • 105