[]
Generates a JSON string from the sparkline group.
Use this method to serialize the current sparkline group definition so that it can be reused with FromJson(string) or stored for later use.
string ToJson()
Function ToJson() As String
| Type | Description |
|---|---|
| string | The JSON string representing the sparkline group. |
worksheet.Range["A1:C1"].Value = new object[] {1, 3, 2};
ISparklineGroup group = worksheet.Range["D1"].SparklineGroups.Add(SparkType.Line, "A1:C1");
string json = group.ToJson();