SpreadJS Documentation
dataLabels Method
GC.Spread.Sheets.Charts Namespace > Chart type : dataLabels Method
The chart data labels style of the chart.
Gets or sets the chart data labels style of the chart.
Syntax
var instance = new GC.Spread.Sheets.Charts.Chart(sheet, name, chartType, x, y, width, height, dataRange, dataOrientation);
var returnValue; // Type: any
returnValue = instance.dataLabels(value);
function dataLabels( 
   value : Object
) : any;

Parameters

value
The chart data labels style of the chart.
Remarks

The following table lists all the other parameters that can be used while getting or setting the data label styles of the chart.

Parameter Type Description
value.showValue boolean Whether to show value in data labels.
value.showSeriesName boolean Whether to show series name in data labels.
value.showCategoryName boolean Whether to show category name in data labels.
value.showPercentage boolean Whether to show the percent value in data labels.
value.position - The position of the chart data labels.
value.format string The format of the chart data labels.
value.color string The color of the chart data labels.


See Also

Reference

Chart type