Exemplo n.º 1
0
 public ChartJSdataset(ChartJSdataset cp) : this()
 {
     this.label                = label;
     this.backgroundColor      = new List <string>(cp.backgroundColor);
     this.borderColor          = cp.borderColor;
     this.pointBackgroundColor = cp.pointBackgroundColor;
     this.borderWidth          = cp.borderWidth;
     this.data             = new List <double>(cp.data);
     this.fill             = cp.fill;
     this.pointRadius      = cp.pointRadius;
     this.pointHoverRadius = cp.pointHoverRadius;
     this.showLine         = cp.showLine;
 }
Exemplo n.º 2
0
        public ChartJSdataset DeepCopy()
        {
            ChartJSdataset newcp = new ChartJSdataset();

            newcp.label                = this.label;
            newcp.backgroundColor      = new List <string>(this.backgroundColor);
            newcp.borderColor          = this.borderColor;
            newcp.pointBackgroundColor = this.pointBackgroundColor;
            newcp.borderWidth          = this.borderWidth;
            newcp.data             = new List <double>(this.data);
            newcp.fill             = this.fill;
            newcp.pointRadius      = this.pointRadius;
            newcp.pointHoverRadius = this.pointHoverRadius;
            newcp.showLine         = this.showLine;
            return(newcp);
        }