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