4

我需要使用选项或 setoptions 动态设置 Kendo UI 股票图表类别轴和值轴标题。

任何人都可以为我提供一个工作示例吗?

4

1 回答 1

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();
于 2014-04-23T07:03:09.480 回答