I am planning to have a tab that display chart and grid, the data in the grid change depending on the setting.
var nCount = oFormProps.Grid.getUserData("", "Count");
document.getElementById('chart_container').style.height = nCount * 20 + "px";
if (oFormProps.Chart != undefined || oFormProps.Chart != null) {
oFormProps.Chart.clearAll();
oFormProps.Chart.refresh();
}
oFormProps.Chart = new dhtmlXChart({
view: "barH",
color: "#66ccff",
container: "chart_container",
value: "#data2#",
label: "#data1#",
width: 20,
xAxis: {
start: oGrid.getUserData("", "MinValue"),
step: oGrid.getUserData("", "Step"),
end: oGrid.getUserData("", "MaxValue")
}
});
sort of work, however I still see left-over from previous charts, like x and yAxis markings, also the resizing of the container does not work, likely due to the fact that the old chart is not completely gone.