Skip to content

Commit

Permalink
Merge pull request #46 from RevealBi/add-xmla-members-and-viz-desc
Browse files Browse the repository at this point in the history
Add new properties for Xmla support and visualizations
  • Loading branch information
brianlagunas authored May 7, 2024
2 parents 335777a + ed44f0e commit a33da8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public DimensionColumn(IDimensionDataField dataField) : this()
[JsonProperty("SummarizationField")]
public IDimensionDataField DataField { get; set; }

//todo: implement
[JsonProperty]
internal XmlaDimensionElement XmlaElement { get; set; }
[JsonProperty("XmlaElement")]
public XmlaDimensionElement XmlaElement { get; set; }
}
}
5 changes: 2 additions & 3 deletions src/Reveal.Sdk.Dom/Visualizations/Primitives/MeasureColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public MeasureColumn(NumberDataField dataField) : this()
[JsonProperty("SummarizationField")]
public NumberDataField DataField { get; set; }

//todo: implement
[JsonProperty]
internal XmlaMeasure XmlaMeasure { get; set; }
[JsonProperty("XmlaMeasure")]
public XmlaMeasure XmlaMeasure { get; set; }
}
}
5 changes: 5 additions & 0 deletions src/Reveal.Sdk.Dom/Visualizations/Visualization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ protected Visualization(string title, DataSourceItem dataSourceItem)
[JsonProperty("DataSpec", Order = 6)]
public IDataDefinition DataDefinition { get; internal set; }

/// <summary>
/// Gets or sets the description of the visualization.
/// </summary>
public string Description { get; set; }

/// <summary>
/// Gets the data source item for the visualization.
/// </summary>
Expand Down

0 comments on commit a33da8d

Please sign in to comment.