Posted 5 June 2020, 3:14 am EST
Dear support,
I use following code to add the 2nd Y-Axis on one of our Pivot Chart (In Angular):
let s = pivotChart.flexChart.series[i];
let axisY = new Axis();
axisY.position = <any>'Right';
axisY.axisLine = true;
axisY.max = 1;
s.chartType = ChartType.Line;
axisY.title = "Currencies";
axisY.format = "c2";
s.axisY = axisY;
Note pivotChart is of class WjPivotChart. Above code works, however when I call:
pivotChart.refresh()
then the 2nd Y-axis disappeared. May I ask whether it is a bug, or there’s anyway that we can avoid this issue? We have to call pivotChart.refresh() because the data source may get updated.