This topic is locked

javascript ChartModify in version 11

4/1/2025 4:58:13 AM
PHPRunner General questions
E
Enzo Menna author

Good morning, I have an event (javascript ChartModify), detailed below, which has stopped functioning since the upgrade from version 10.91 to 11. I would appreciate your assistance in determining the cause.
Unfortunately, without this functionality, I cannot migrate my projects to version 11. Thank you for your collaboration

var series = chart.getSeriesAt(0);
series.color("#FFD700", 0.75);

var series = chart.getSeriesAt(1);
series.color("#D3D3D3", 0.25);

var xAxis = chart.xAxis();
// allow labels overlapping
xAxis.overlapMode("allowOverlap");

Sergey Kornilov admin 4/1/2025

You need to explain what exactly is not working. There are no known issues with ChartModify in v11 at the moment.

This code definitely works in a test project.

img alt

E
Enzo Menna author 4/1/2025

In the chart version 10.91, the colors are those indicated in the chart modifyevent, while the colors in version 11 are the default ones. Additionally, not all descriptions are shown to the left of the chart because the xAxis.overlapMode("allowOverlap") instruction does not work.

img alt

img alt

Sergey Kornilov admin 4/1/2025

My screenshot was taken in version 11.

Make sure you use the latest build of version 11.

E
Enzo Menna author 4/1/2025

The version i used is v11 43125 enterprice

E
Enzo Menna author 4/18/2025

Good morning, I have conducted some checks and indeed the chartmodify instructions work if they are inserted into a new project in v11. However, when a project is imported from version 10.91, the same instructions do not work. Could you kindly verify? Thank you.

Sergey Kornilov admin 4/18/2025

Enzo,

I suggest you contact support directly sending your v10.91 project export so we can see what exactly is happening there.