I am using AM Charts 4 and have defined a line chart with multiple bullets – a circle bullet and a triangle bullet for each data point (except for the first, which has only the circle bullet). It looks like this:
You can see the code here.
What I would like to do is rotate each of the triangle bullets so that they face the direction of the line.
I have tried adding adjustRotation: true, to the line series config, but it does not seem to do anything. I also tried adding autoRotate: true on the bullet config, but this also does not seem to do anything.
I also tried adding an adapter for rotation, as shown on the AM Charts documentation here.
But this recommends using a valueToPosition method on the date axis (I tried using it with both the date axis and value axis) but I see an error saying that this valueToPosition method does not exist.
I am using the JSON config method of creating the chart and would like to retain this approach as I am working with configs saved on the server and passed to the front-end. I am also using Vue3.
How can I rotate these triangles to face the direction of the line?

