Forum Discussion

gipiluso's avatar
gipiluso
Resolver II
8 years ago

Radar Chart Area

I am using a custom visual for Radar Chart.

I am fine with the visualization, but I have to calculate a KPI that is the Area of the polygon depicted by the Radar.

 

Since my radar have 6 vertex, in order to calculate the area my imput are:

  • 1 measures for Poligon Vertex
  • 6 meaurse with the Law of cosines for the missing sides
  • 6 measure for semi-perimeter with Heron's formula
  • 6 meauses for the area of 6 scalene triangles in the radar
  • 1 measure with the sum of the 6 traingles.

This mean that I have to calculate 20 measures for the area.

 

Do you know any smarter approach?

3 Replies

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi gipiluso,

     

    As the graph depicted by the Radar is a polygon, the only way to compute its area size is to split it to multiple regular polygon. I think the way you mentioned above is a good choice. For a better and smarter solution of how to split this polygon and how to calculate, I think it's a mathematical question.

     

    Regards,

    Yuliana Gu

    • gipiluso's avatar
      gipiluso
      Resolver II

      thanks for your reply.

      I know my approach is right, but I would like something automatically calculate the area.

      I think that since the visual is able to draw the area  should be possible also perform the calculation.

       

      GP

  • jthomson's avatar
    jthomson
    Solution Sage

    This is effectively six triangles for which you know two of the sides (the central point to the value of each axis) and the angle between them (60 degrees), google the maths from there