Hi,
If you are going to change the DataSource of the chart you can change other settings (e.g. the DataLabelsField of the x-axis) at the same time. This approach is used to achieve the drilldown in this demo, and I believe it is quite close to what you are looking for:
http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultcs.aspx. It shows how you can configure settings for the chart based on the datasource fields. Once the chart has correct settings it will render properly on the client without additional JS code.
Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the
blog feed now.