📄 scatter.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using JsonFx.Json;
namespace OpenFlashChart
{
public class ScatterValue
{
private double x;
private double y;
private int? dotsize;
public ScatterValue(double x,double y,int dotsize)
{
this.x=x;
this.y=y;
if(dotsize>0)
this.dotsize=dotsize;
}
[JsonProperty("x")]
public double X
{
get{return x;}
set{this.x=value;}
}
[JsonProperty("y")]
public double Y
{
get{return y;}
set{this.y=value;}
}
[JsonProperty("dot-size")]
public int DotSize
{
get{
if (dotsize == null)
return -1;
return dotsize.Value;}
set{this.dotsize=value;}
}
}
public class Scatter:Chart<ScatterValue>
{
private int? dotsize;
public Scatter(string color,int? dotsize)
{
this.ChartType = "scatter";
this.Colour = color;
this.dotsize = dotsize;
}
[JsonProperty("dot-size")]
public int? DotSize
{
get { return this.dotsize.Value; }
set { this.dotsize = value; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -