Forum Discussion
dadb25
3 years agoHelper I
Dot Plot - Custom visualisation
Hello community, I want to create a Dot Plot , with this visualisation : Is it possible to build these 4 colored areas ? Thanks for your help Regards
- 3 years ago
It's a math ^.^ I've created this one with 12 data points. If you will create more data points, it will look more natural.
The standard equation of a circle is:
(x - h)^2 + (y - k)^2 = r^2
Where (h, k) is the center of the circle and r is the radius.
So, if you know the values of x, h, k, and r, you can calculate the value of y.
y = sqrt(r^2 - (x - h)^2) + k
Blue 0,25 2,9895651858 Blue 0,5 2,9580398915 Blue 1 2,8284271247 Blue 1,25 2,7271780287 Blue 1,5 2,5980762114 Blue 1,75 2,4366985862 Blue 2 2,2360679775 Blue 2,25 1,9843134833 Blue 2,5 1,6583123952 Blue 2,75 1,1989578808 Blue 3 0
bolfri
3 years agoSolution Sage
It's a math ^.^ I've created this one with 12 data points. If you will create more data points, it will look more natural.
The standard equation of a circle is:
(x - h)^2 + (y - k)^2 = r^2
Where (h, k) is the center of the circle and r is the radius.
So, if you know the values of x, h, k, and r, you can calculate the value of y.
y = sqrt(r^2 - (x - h)^2) + k
| Blue | 0,25 | 2,9895651858 |
| Blue | 0,5 | 2,9580398915 |
| Blue | 1 | 2,8284271247 |
| Blue | 1,25 | 2,7271780287 |
| Blue | 1,5 | 2,5980762114 |
| Blue | 1,75 | 2,4366985862 |
| Blue | 2 | 2,2360679775 |
| Blue | 2,25 | 1,9843134833 |
| Blue | 2,5 | 1,6583123952 |
| Blue | 2,75 | 1,1989578808 |
| Blue | 3 | 0 |