Reveal.Sdk.Dom 0.1.11-beta

This is a prerelease version of Reveal.Sdk.Dom.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Reveal.Sdk.Dom --version 0.1.11-beta                
NuGet\Install-Package Reveal.Sdk.Dom -Version 0.1.11-beta                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Reveal.Sdk.Dom" Version="0.1.11-beta" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Reveal.Sdk.Dom --version 0.1.11-beta                
#r "nuget: Reveal.Sdk.Dom, 0.1.11-beta"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Reveal.Sdk.Dom as a Cake Addin
#addin nuget:?package=Reveal.Sdk.Dom&version=0.1.11-beta&prerelease

// Install Reveal.Sdk.Dom as a Cake Tool
#tool nuget:?package=Reveal.Sdk.Dom&version=0.1.11-beta&prerelease                

Reveal.Sdk.Dom

The Reveal.Sdk.Dom is a Document Object Model (DOM) for the Reveal .rdash file format. It allows developer using the Reveal SDK to load, edit, and create dashboards using .NET.

The Reveal.Sdk.Dom is currently BETA so expect things to not work, or to possibly break in a future release.

Check out the Samples in the Sandbox application I am using to develop and test the API.

Quick Start Guide

Install the Reveal.Sdk.Dom NuGet package.

Load Dashboard

string filePath = Path.Combine(Environment.CurrentDirectory, "Sales.rdash");
var document = RdashDocument.Load(filePath);

Create Dashboard

//create the dashboard document
var document = new RdashDocument("My Dashboard");

//create a data source item using a REST service
var jsonDataSourceItem = new RestBuilder("https://excel2json.io/api/share/6e0f06b3-72d3-4fec-7984-08da43f56bb9")
    .SetTitle("JSON Data Source")
    .SetSubtitle("Sales by Category")
    .SetFields(new List<Field>() //must define the fields returned from the data set
    {
        new NumberField("CategoryID"),
        new TextField("CategoryName"),
        new TextField("ProductName"),
        new NumberField("ProductSales"),
    })
    .Build();

//add a Pie Chart to the dashboard using the REST service as the data source
document.Visualizations.Add(new PieChartVisualization("My Pie Chart", jsonDataSourceItem)
    .AddLabel("CategoryName")
    .AddValue("ProductSales"));

//save the document as an .rdash file
document.Save(filePath);

//optionally load the document into a RevealView
var json = document.ToJsonString();
_revealView.Dashboard = await RVDashboard.LoadFromJsonAsync(json);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.198-beta 478 6/7/2024
0.1.194-beta 207 5/24/2024
0.1.164-beta 728 5/8/2024
0.1.160-beta 61 5/7/2024
0.1.152-beta 20 5/2/2024
0.1.150-beta 108 3/29/2024
0.1.148-beta 106 2/9/2024
0.1.147-beta 136 8/17/2023
0.1.145-beta 95 8/7/2023
0.1.143-beta 77 8/7/2023
0.1.141-beta 82 8/7/2023
0.1.140-beta 79 8/7/2023
0.1.133-beta 93 8/3/2023
0.1.130-beta 88 8/2/2023
0.1.127-beta 88 8/2/2023
0.1.125-beta 426 7/28/2023
0.1.123-beta 76 7/27/2023
0.1.111-beta 147 7/26/2022
0.1.65-beta 127 7/21/2022
0.1.11-beta 135 7/13/2022
0.1.10-beta 128 7/13/2022