'Declaration Public Property DataSetting As ChartDataSetting
'Usage Dim instance As SpreadChart Dim value As ChartDataSetting instance.DataSetting = value value = instance.DataSetting
public ChartDataSetting DataSetting {get; set;}
'Declaration Public Property DataSetting As ChartDataSetting
'Usage Dim instance As SpreadChart Dim value As ChartDataSetting instance.DataSetting = value value = instance.DataSetting
public ChartDataSetting DataSetting {get; set;}
The ShowHiddenData option indicates whether the hidden data in the sheet is used to generate series data. When this value is false, the hidden data is ignored. The EmptyValueStyle property indicates how to use the empty value and what the value will be converted to.
SpreadChart chart = this.fpSpread1_Sheet1.Charts[0]; ChartDataSetting dataSetting = new ChartDataSetting(EmptyValueStyle.Zero, true); chart.DataSetting = dataSetting; //chart.DataSetting.EmptyValueStyle = EmptyValueStyle.Zero; //chart.DataSetting.ShowHiddenData = true;
Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart(GetType(FarPoint.Win.Chart.BarSeries)) Dim dataSetting As New FarPoint.Win.Spread.Chart.ChartDataSetting(FarPoint.Win.Spread.Chart.EmptyValueStyle.Zero, True) chart.DataSetting = dataSetting fpSpread1.Sheets(0).AddChart(chart, 0, 0) 'chart.DataSetting.EmptyValueStyle = FarPoint.Win.Spread.Chart.EmptyValueStyle.Zero 'chart.DataSetting.ShowHiddenData = True