2014-04-10 41 views
3

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

任何一个可以给我一个工作的例子吗?

+0

你可以添加一些代码,我们也许可以看看的jsfiddle或类似的东西? – Jacques

+0

http://jsbin.com/nejawahe/6/edit?html,console,output这里是我actullay需要的小例子@Jacques – user3475088

回答

1

您可以动态地改变这样的标题:

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(); 
+1

感谢@Nic它正在工作 – user3475088