I can successfully execute the sample examples using Charts. Now I am trying this with actual data using DMI datasource.
I am able to retrive all the data successfully, but the graph/chart is not displayed. I see blank in place/position of the chart.
I am unable to figure out what is missing here ?
Please refer the code that I am using
<%@ taglib uri="isomorphic" prefix="isomorphic" %>
<HTML><HEAD>
<TITLE>
Volume Matrix
</TITLE>
</HEAD>
<isomorphic:loadISC skin="SmartClient" includeModules="ISC_Analytics,ISC_PluginBridges"/>
<BODY BGCOLOR=#D3D3D3>
<SCRIPT>
<isomorphic:loadDS ID="histogramGraphSpringDMI"/>
// databound ListGrid
isc.ListGrid.create({
ID:"boundList1",
leaveScrollbarGap:false,
height:180,
canEdit:false,
editEvent:'click',
alternateRecordStyles:true,
autoDraw: false,
// editing a cell triggers an update of the chart
cellChanged:"boundList1.updateChart({chartType:'Column'})",
recordClick:"boundList1.updateChart({chartType:'Column'})",
updateChart : function (props) {
// store chart configuration
if (props) this.chartProps = props;
// if there's already a chart, destroy it
if (this.lastChart) this.lastChart.destroy();
// generate chart
this.lastChart = this.chartData("date",null, null, this.chartProps);
// show it
volumeStack.addMember(this.lastChart, 4);
},
dataSource:histogramGraphSpringDMI
});
// toolbar to perform various actions using the boundForm values (see helpText above)
isc.Toolbar.create({
ID:"toolButton",
autoDraw:false,
membersMargin:10,
buttonConstructor: "IButton",
height: 22,
buttons:[
{title:"Histogram", click:"boundList1.fetchData(boundForm1.getValuesAsCriteria());"}
]
});
// Search the form on these criteria
isc.SearchForm.create({
ID:"boundForm1",
dataSource: histogramGraphSpringDMI,
numCols:"2",
autoFocus:false,
useAllDataSourceFields: false,
fields:[
{name:"startdate",type:"date"},
{name:"enddate",type:"date"}
]
});
isc.VLayout.create({
ID:"volumeLayout1",
left:0, top:0,
width:"100%",
height:"100%",
membersMargin:0,
members:[
isc.HTMLPane.create({
left:0, top:0,
width:"100%", height:125, showEdges:false,
contentsType:"page", overflow: "hidden",
contentsURL:"/citweb/header.html"
}),
isc.VStack.create({
ID:"volumeStack",
width:"100%", height:"100%", membersMargin:0,
members:[boundForm1,toolButton,boundList1]
})
]
});
</SCRIPT>
</BODY></HTML>
