The titles for my charts are dependent on the data. I would prefer to create the data-dependent title on the server when the chart dataSource does a "read". Is there a way to add additional data in the JSON stream (in addition to the array of data items) that is sent down to the client and have the client process it properly? Off the top of my head, would it make sense to put that in the parse function of the dataSource schema? Would that work - how would I point the chart to the data.chartData and can I set the title in the parse function? I'm thinking the JSON from the server would be something like:
Currently, we are iterating through the received data in the dataBound. This function is getting unnecessarily complex and I want to move some of the processing to the server. This includes generating tooltips, the title, the axisCrossingValues, min, max, majorUnit, categoryAxis title, valueAxis titles, etc.
Thanks in advance,
--John
var
data = {
additionalData: {
title:
'this is the data dependent title'
},
chartData: []
// typical chart data here
};
Currently, we are iterating through the received data in the dataBound. This function is getting unnecessarily complex and I want to move some of the processing to the server. This includes generating tooltips, the title, the axisCrossingValues, min, max, majorUnit, categoryAxis title, valueAxis titles, etc.
Thanks in advance,
--John