ChartDataExporter
public static class ChartDataExporterDeterministic semantic CSV and JSON export for visible chart data.
Methods
Section titled “Methods”
ToCsv(Chart)
Section titled “ToCsv(Chart)”public static string ToCsv(Chart chart)Exports chart marks and accessible labels as invariant CSV.
Parameters
| Name | Type |
|---|---|
chart |
ChartGuru.Chart |
Returns
System.String
ToJson(Chart, bool)
Section titled “ToJson(Chart, bool)”public static string ToJson(Chart chart, bool pretty = false)Exports the chart descriptor and raw mark ranges as invariant JSON.
Parameters
| Name | Type |
|---|---|
chart |
ChartGuru.Chart |
pretty |
System.Boolean |
Returns
System.String
WriteCsv(Chart, string)
Section titled “WriteCsv(Chart, string)”public static void WriteCsv(Chart chart, string path)Writes UTF-8 CSV to an explicit destination.
Parameters
| Name | Type |
|---|---|
chart |
ChartGuru.Chart |
path |
System.String |
WriteJson(Chart, string, bool)
Section titled “WriteJson(Chart, string, bool)”public static void WriteJson(Chart chart, string path, bool pretty = true)Writes UTF-8 JSON to an explicit destination.
Parameters
| Name | Type |
|---|---|
chart |
ChartGuru.Chart |
path |
System.String |
pretty |
System.Boolean |