Draw line w/ arrow on a chart between datapoints

Hi,

I am trying to draw lines between datapoints on a polar chart, and I tried to use System.Drawing, with brush / pen, and apparently this does not work with Android.Graphics, we have conflict with PointF. I checked and tried to use chart.Draw(canvas) and it did not worked either. If this method could work, I guess it is tricky to pinpoint the center of reference of the chart and match screen coordinates with chart coordinates, you have any idea to share?

Thanks in advance

Nicolas



2 Replies

NI Nicolas October 17, 2017 04:20 AM UTC

To this date, the only alternate way I found is to add new polar series and draw the lines and shapes I need. In this I met some problems I cannot explain.

With one of the segment I made (2 coordinates), I tried the method polarseries.DrawType = PolarChartDrawType.Line and even with a polarseries.PathEffect, it does not work, the line segment does not show on the chart, while I can see the DataMarkers. When I look deeper at the runtime, segment = null

The other problem I met is the zoom which is apparently not working on this type of chart, please check if it is the case.

Thank you

Nicolas



PS Parthiban Sundaram Syncfusion Team October 17, 2017 04:59 PM UTC

Hi Nicolas, 
 
Thanks for using Syncfusion products. 
 
Regarding the query about how to get the center point of the chart 
 
You can achieve this requirement with the help of SeriesClipRect in SfChart. Please refer the following code snippet for more details. 
 
 
      var cenX = chart.SeriesClipRect.CenterX(); 
      var cenY = chart.SeriesClipRect.CenterY(); 
 
Regarding the query about Zooming is not working  
 
We would like to inform you that the PolarRadarSeries does have Zooming Support. 
 
Regarding the PathEffect is not working in line Segment of PolarChartDrawType. 
 
We have created an incident under your Direct Trac account. So, we request to follow the incident for further details.

Our Direct Trac support system can be accessed from the following link:

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents  
 
 
Regards, 
Parthiban S 


Loader.
Up arrow icon