AnyChart-Android icon indicating copy to clipboard operation
AnyChart-Android copied to clipboard

Anychart polar line always connecting dots "clockwise" and not "counterclockwise"

Open ifll opened this issue 4 years ago • 4 comments

Hi,

I have a polar plot with a line series drawn on it. The polar plot always joins the dots with a line that goes "clockwise". This behavior is expected when the polar plot has a "xscale" that increases its value also "clockwise" and the line would need to join values that go from a lower to a higher angle value. Nevertheless, in the same example, when aiming to join the a higher angle value with a lower value, the line should go "counterclockwise", but this is not the case.

This issue is explained here: https://stackoverflow.com/questions/66099638/anychart-polar-plot-line-performance and can be observed here: https://playground.anychart.com/F6srRlRo/12

Wouldn't it be more logic that, if we take as a reference a polar plot, with a xscale that increases the angular value clockwise, the lines should join the data dots on the direction of the values? Meaning that increasing angle values, the line joins clockwise and decreasing angle values, the line joins the values counterclockwise?

Thanks!

ifll avatar Feb 08 '21 11:02 ifll

@ifll The current version of the library v8.9.0 always provides clock-wise direction for the line rendering in the Polar chart. Unfortunately, there's no possibility to override this behavior.

Shestac92 avatar Feb 09 '21 08:02 Shestac92

Ok, thank you very much for your answer!

Yet, I think this behavior is not intuitive.... I don't understand why it should always go "clockwise" when drawing each line if the value decreases... will you consider modifying this situation on the next version of Anychart?

Cheers

ifll avatar Feb 09 '21 08:02 ifll

@ifll We will take it into account for future updates.

Shestac92 avatar Feb 09 '21 17:02 Shestac92

Perfect, thank you very much! I'll be happy whenever this is implemented :D!

ifll avatar Feb 09 '21 18:02 ifll