Hello
There was an error calling “ chart.surface.redraw() ”
onRender = (args,mapValues,stackedOrderBy) => {
const chart = args.target.chartInstance;
const valueAxis = chart.findAxisByName("valueAxis");
const categoryAxis = chart.findAxisByName("categoryAxis");
if (!chart) return;
let x= 1;
if( stackedOrderBy!="Ascending")
x=-1;
let axis = categoryAxis.options;
axis.categories = axis.categories.sort(function (a, b) {
if (mapValues[a] < mapValues[b]) {
return -1*x;
}
if (mapValues[a] > mapValues[b]) {
return 1*x;
}
return 0;
});
chart.surface.redraw();
Hello,
It is expected, as the surface does not have a redraw method.
Please let us know if there is a place in the documentation where the redraw method is shown for the surface?
Also, this is marked as a feature request, but it looks like a support ticket.
I noticed that this account is not associated with a valid Trial or a license, please ask the license holder to assign a valid license for it.
Regards,
Stefan
Progress Telerik