Chart

Chart

Class graphomate.ui.charts.Chart


extends sap.ui.core.Control

 

Quick Start

Creates a chart that can be used in layouts and other container components. The graphomate chart is highly customizable due to its large amount of properties and aggregations.

Usage Example
var chart = new graphomate.ui.charts.Chart({ chartType: graphomate.ui.charts.enums.ChartType.OffsetBar, series1: [5, 16, 17, 20], series2: [-2, 12, 15, 19] });

 

 

 

 

Constructor Details

new graphomate.ui.charts.Chart(id?:string, settings?:object)

Accepts an id and a settings object or one or none of them. The settings object defines initial property values as well as aggregated and associated objects. Every setting can also be set using the related setter method. The supported settings are:

Properties:
General
Data
  • series1 : float[] (default: [])

  • series2 : float[] (default: [])

  • series3 : float[] (default: [])

  • series4 : float[] (default: [])

  • series5 : float[] (default: [])

  • series6 : float[] (default: [])

  • series7 : float[] (default: [])

  • series8 : float[] (default: [])

  • series9 : float[] (default: [])

  • series10 : float[] (default: [])

  • datatypes1 : string[] (default: [])

  • datatypes2 : string[] (default: [])

  • datatypes3 : string[] (default: []),

  • datatypes4 : string[] (default: [])

  • datatypes5 : string[] (default: [])

  • datatypes6 : string[] (default: [])

  • datatypes7 : string[] (default: [])

  • datatypes8 : string[] (default: [])

  • datatypes9 : string[] (default: [])

  • datatypes10 : string[] (default: [])

  • seriesLabels : string[] (default: ["Series1","Series2","Series3","Series4","Series5","Series6","Series7","Series8","Series9","Series10"])

  • categoryLabels : string[][] (default: [])

  • axisLabels : string[] (default: [])

  • visibleSeries : int[] (default: [])

Labels
Axes
  • showCategoryAxis : boolean (default: true)

  • axisThickness : int, (default: 3)

  • fixedCategoryWidth : boolean (default: false)

  • categoryWidth : int (default: 50)

  • showValueAxis : boolean (default: false)

  • flipValueAxis : boolean (default: false)

  • valueAxisTickDistance : float (default: 50.0)

  • categoryCount : graphomate.ui.types.UnsignedInteger (default: 0)

Synchronization
  • comparisonGroup : string (default: null)

Deviations
  • negativeDeviationIsGood : boolean (default: false)

  • deviationGoodColor : graphomate.ui.types.HexColor (default: "#8CB400")

  • deviationBadColor : graphomate.ui.types.HexColor (default: "#FF0000")

  • spaceFactorDeviationChart : float (default: 0.25)

  • spaceFactorBaseChart : float (default: 0.5)

  • deviationPinLineBlack : boolean (default: false)

Highlight
Scaling
Outliers
Separators
Scaling Helper
Offset Bar Chart
  • showOffsetsOnLeft : boolean (default: false)

  • offsetBarDeviationLabelsOnTop : boolean (default: false)

Stacked Bar Chart
Waterfall Chart
Appearance
Aggregations:
Events:
  • elementClick : fnListenerFunction(oEvent)