ラベル付きデータシークエンス

データ系列から取得したラベル付きデータシークエンスはデータおよびそれに対するラベル用のデータを保持しています。

ひとつのデータシークエンスでは、たとえば散布図の X のデータのみといった一連のデータで、ほかのデータシークエンスとともにグラフに描写されます。

ラベル付きデータシークエンスはデータのシークエンスとラベル用のデータのシークエンスをまとめるだけのオブジェクトです。

Sub GetLabeledDataSequence
  oSheet = ThisComponent.getSheets().getByIndex(0)
  oChart = oSheet.getChart().getByIndex(0).getEmbeddedObject()
  oFirstDiagram = oChart.getFirstDiagram()
  
  oCoordinateSystems = oFirstDiagram.getCoordinateSystems()
  oCoord = oCoordinateSystems(0)
  
  oChartTypes = oCoord.getChartTypes()
  oChartType = oChartTypes(0)
  
  oSeriesSeq = oChartType.getDataSeries()
  oSeries = oSeriesSeq(0)
  
  oDataSequences = oSeries.getDataSequences()
  oDataSequence = oDataSequences(0)
End Sub

.chart2.XLabeledDataSequence

このインターフェースのメソッドを介してラベルデータおよびデータのシークエンスオブジェクトにアクセスします。

  • XDataSequence getValues()

データ用のデータシークエンスオブジェクトを返します。

  • void setValues( [in] XDataSequence xSequence )

データ用のデータシークエンスオブジェクトを設定します。

  • XDataSequence getLabel()

ラベル用のデータシークエンスオブジェクトを返します。

  • void setLabel( [in] XDataSequence xSequence )

ラベル用のデータシークエンスオブジェクトを設定します。