[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISparklineGroup.FromJson

FromJson Method

FromJson(string)

Generates the sparkline group from a JSON string.

Use this method to restore the sparkline group's settings from JSON that was previously generated by ToJson().

Declaration
void FromJson(string json)
Sub FromJson(json As String)
Parameters
Type Name Description
string json

The JSON string representing the sparkline group.

Examples
worksheet.Range["A1:C4"].Value = new object[,] {
    {1, 2, 3},
    {4, 5, 6},
    {7, 8, 9},
    {10, 11, 12}
};
ISparklineGroup sparklineGroup = worksheet.Range["D1:D4"].SparklineGroups.Add(SparkType.Line, "A1:C4");
string json = sparklineGroup.ToJson();
sparklineGroup.FromJson(json);