Ok, still need help with this one. I’ve gone the HighCharts direction so I could define my data in javascript since my requirement makes standard charting an impossibility (as far as I can tell). I have the chart rendering it’s legend, but no data points show up.
Can anyone help me identify what is wrong with this guy?
var $ = skuid.$;
$(document.body).one('pageload',function(){
var myModelRows = skuid.$M('mymodel').getRows();
var chartSeries = ;
for(var index = 0; index < myModelRows.length; index++) {
var rowData = buildRowData(myModelRows[index]); console.log(rowData.split(","));
chartSeries[index] = {
name: myModelRows[index].Account_Number__c,
data: rowData.split(",") };
}
console.log(chartSeries);
var chart = $('#container').highcharts({
xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] },
yAxis: { ceiling: 100, floor: 0 },
plotOptions: { series: { type: "line", allowPointSelect: true } },
series: chartSeries }); });
function buildRowData(dataRow) {
var data = dataRow.Jan__c + "," + dataRow.Feb__c + "," + dataRow.Mar__c + "," + dataRow.Apr__c + "," + dataRow.May__c + "," + dataRow.Jun__c + "," + dataRow.Jul__c + "," + dataRow.Aug__c + "," + dataRow.Sept__c + "," + dataRow.Oct__c + "," + dataRow.Nov__c + "," + dataRow.Dec__c; return data;
}