/// <summary>
 /// Initializes a new instance of the <see cref="XYViewProperties" /> class.
 /// </summary>
 /// <param name="type">type (required).</param>
 /// <param name="queries">queries (required).</param>
 /// <param name="colors">Colors define color encoding of data into a visualization (required).</param>
 /// <param name="shape">shape (required).</param>
 /// <param name="note">note (required).</param>
 /// <param name="showNoteWhenEmpty">if true, will display note when empty (required).</param>
 /// <param name="axes">axes (required).</param>
 /// <param name="legend">legend (required).</param>
 /// <param name="xColumn">xColumn.</param>
 /// <param name="yColumn">yColumn.</param>
 /// <param name="shadeBelow">shadeBelow.</param>
 /// <param name="geom">geom (required).</param>
 public XYViewProperties(TypeEnum type = default(TypeEnum), List <DashboardQuery> queries = default(List <DashboardQuery>), List <DashboardColor> colors = default(List <DashboardColor>), ShapeEnum shape = default(ShapeEnum), string note = default(string), bool?showNoteWhenEmpty = default(bool?), Axes axes = default(Axes), Legend legend = default(Legend), string xColumn = default(string), string yColumn = default(string), bool?shadeBelow = default(bool?), XYGeom geom = default(XYGeom)) : base()
 {
     // to ensure "type" is required (not null)
     if (type == null)
     {
         throw new InvalidDataException("type is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.Type = type;
     }
     // to ensure "queries" is required (not null)
     if (queries == null)
     {
         throw new InvalidDataException("queries is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.Queries = queries;
     }
     // to ensure "colors" is required (not null)
     if (colors == null)
     {
         throw new InvalidDataException("colors is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.Colors = colors;
     }
     // to ensure "shape" is required (not null)
     if (shape == null)
     {
         throw new InvalidDataException("shape is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.Shape = shape;
     }
     // to ensure "note" is required (not null)
     if (note == null)
     {
         throw new InvalidDataException("note is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.Note = note;
     }
     // to ensure "showNoteWhenEmpty" is required (not null)
     if (showNoteWhenEmpty == null)
     {
         throw new InvalidDataException("showNoteWhenEmpty is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.ShowNoteWhenEmpty = showNoteWhenEmpty;
     }
     // to ensure "axes" is required (not null)
     if (axes == null)
     {
         throw new InvalidDataException("axes is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.Axes = axes;
     }
     // to ensure "legend" is required (not null)
     if (legend == null)
     {
         throw new InvalidDataException("legend is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.Legend = legend;
     }
     // to ensure "geom" is required (not null)
     if (geom == null)
     {
         throw new InvalidDataException("geom is a required property for XYViewProperties and cannot be null");
     }
     else
     {
         this.Geom = geom;
     }
     this.XColumn    = xColumn;
     this.YColumn    = yColumn;
     this.ShadeBelow = shadeBelow;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LinePlusSingleStatProperties" /> class.
 /// </summary>
 /// <param name="type">type (required).</param>
 /// <param name="queries">queries (required).</param>
 /// <param name="colors">Colors define color encoding of data into a visualization (required).</param>
 /// <param name="shape">shape (required).</param>
 /// <param name="note">note (required).</param>
 /// <param name="showNoteWhenEmpty">if true, will display note when empty (required).</param>
 /// <param name="axes">axes (required).</param>
 /// <param name="legend">legend (required).</param>
 /// <param name="xColumn">xColumn.</param>
 /// <param name="yColumn">yColumn.</param>
 /// <param name="shadeBelow">shadeBelow.</param>
 /// <param name="prefix">prefix (required).</param>
 /// <param name="suffix">suffix (required).</param>
 /// <param name="decimalPlaces">decimalPlaces (required).</param>
 public LinePlusSingleStatProperties(TypeEnum type = default(TypeEnum), List <DashboardQuery> queries = default(List <DashboardQuery>), List <DashboardColor> colors = default(List <DashboardColor>), ShapeEnum shape = default(ShapeEnum), string note = default(string), bool?showNoteWhenEmpty = default(bool?), Axes axes = default(Axes), Legend legend = default(Legend), string xColumn = default(string), string yColumn = default(string), bool?shadeBelow = default(bool?), string prefix = default(string), string suffix = default(string), DecimalPlaces decimalPlaces = default(DecimalPlaces))
 {
     // to ensure "type" is required (not null)
     if (type == null)
     {
         throw new InvalidDataException("type is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Type = type;
     }
     // to ensure "queries" is required (not null)
     if (queries == null)
     {
         throw new InvalidDataException("queries is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Queries = queries;
     }
     // to ensure "colors" is required (not null)
     if (colors == null)
     {
         throw new InvalidDataException("colors is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Colors = colors;
     }
     // to ensure "shape" is required (not null)
     if (shape == null)
     {
         throw new InvalidDataException("shape is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Shape = shape;
     }
     // to ensure "note" is required (not null)
     if (note == null)
     {
         throw new InvalidDataException("note is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Note = note;
     }
     // to ensure "showNoteWhenEmpty" is required (not null)
     if (showNoteWhenEmpty == null)
     {
         throw new InvalidDataException("showNoteWhenEmpty is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.ShowNoteWhenEmpty = showNoteWhenEmpty;
     }
     // to ensure "axes" is required (not null)
     if (axes == null)
     {
         throw new InvalidDataException("axes is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Axes = axes;
     }
     // to ensure "legend" is required (not null)
     if (legend == null)
     {
         throw new InvalidDataException("legend is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Legend = legend;
     }
     // to ensure "prefix" is required (not null)
     if (prefix == null)
     {
         throw new InvalidDataException("prefix is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Prefix = prefix;
     }
     // to ensure "suffix" is required (not null)
     if (suffix == null)
     {
         throw new InvalidDataException("suffix is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.Suffix = suffix;
     }
     // to ensure "decimalPlaces" is required (not null)
     if (decimalPlaces == null)
     {
         throw new InvalidDataException("decimalPlaces is a required property for LinePlusSingleStatProperties and cannot be null");
     }
     else
     {
         this.DecimalPlaces = decimalPlaces;
     }
     this.XColumn    = xColumn;
     this.YColumn    = yColumn;
     this.ShadeBelow = shadeBelow;
 }