using System.Text.Json.Serialization;
namespace RobotNet.WebApp.Charts.Models.BubbleChart;
public class BubblePoint(double x, double y, double r)
{
///
/// Gets the X-value of this .
///
public double X { get; } = x;
///
/// Gets the Y-value of this .
///
public double Y { get; } = y;
///
/// Gets the radius of this in pixels. Will be serialized as 'r'.
///
/// Important: this property is not scaled by the chart,
/// it is the raw radius in pixels of the bubble that is drawn on the canvas.
///
///
[JsonPropertyName("r")]
public double Radius { get; } = r;
}