Graph Maker
WMG_Ring_Graph Class Reference

Class for creating ring graphs or pie graphs. More...

Inheritance diagram for WMG_Ring_Graph:
WMG_Graph_Manager WMG_Events WMG_GUI_Functions WMG_Text_Functions

Public Member Functions

delegate string DataLabeler (WMG_Ring_Graph graph, float val)
 
string defaultDataLabeler (WMG_Ring_Graph graph, float val)
 
delegate void TextureChanger (GameObject obj, Sprite sprite, int textureNum, float maxSize, float inner, float outer, bool antiAliasing, float antiAliasingStrength, float fill)
 
delegate void ColorChanger (GameObject obj, Color color)
 
delegate void BandColorsChanger ()
 
void Init ()
 Initializes the graph, and should always be done before anything else, called automatically in Start(), but it never hurts to call this manually after instantiating a graph prefab. More...
 
void Refresh ()
 Refreshes the graph, and happens automatically in Update(), but sometimes it is useful or necessary to call this manually, note that refresh updates only the parts of the graph affected by properties that have changed since a last refresh. More...
 
void bandColorsChanged (bool editorChange, bool countChanged, bool oneValChanged, int index)
 
void valuesChanged (bool editorChange, bool countChanged, bool oneValChanged, int index)
 
void labelsChanged (bool editorChange, bool countChanged, bool oneValChanged, int index)
 
void hideRingsChanged (bool editorChange, bool countChanged, bool oneValChanged, int index)
 
void ringIDsChanged (bool editorChange, bool countChanged, bool oneValChanged, int index)
 
float getRingRadius (int index)
 
List< int > getRingsSortedByValue ()
 
WMG_Ring getRing (string id)
 Get a ring using the ring ID, where ring IDs are assigned with ringIDs. More...
 
void HighlightRing (string id)
 Highlight the specified ring using ring ID from ringIDs by setting alpha of all rings except the specified ring to 0. More...
 
void RemoveHighlights ()
 Reverts ring highlighting function from HighlightRing. More...
 
- Public Member Functions inherited from WMG_Graph_Manager
GameObject CreateNode (Object prefabNode, GameObject parent)
 Creates a node for this graph. More...
 
GameObject CreateLink (WMG_Node fromNode, GameObject toNode, Object prefabLink, GameObject parent)
 Creates a link for this graph, and repositions the link. More...
 
GameObject CreateLinkNoRepos (WMG_Node fromNode, GameObject toNode, Object prefabLink, GameObject parent)
 Creates a link for this graph, and does not repoisition the link. More...
 
WMG_Link GetLink (WMG_Node fromNode, WMG_Node toNode)
 Given two nodes, get the link between those nodes for this graph. More...
 
GameObject ReplaceNodeWithNewPrefab (WMG_Node theNode, Object prefabNode)
 Given a node, and a prefab, re-instantiate the node using the specified prefab which has a WMG_Node script attached. More...
 
void DeleteNode (WMG_Node theNode)
 Deletes a node. More...
 
void DeleteLink (WMG_Link theLink)
 Deletes a link. More...
 
List< WMG_LinkFindShortestPathBetweenNodes (WMG_Node fromNode, WMG_Node toNode)
 Given two nodes return one or more shortest paths between the nodes based on the number of links (unweighted), using Breadth-first search algorithm. More...
 
List< WMG_LinkFindShortestPathBetweenNodesWeighted (WMG_Node fromNode, WMG_Node toNode, bool includeRadii)
 Given two nodes return one or more shortest paths between the nodes based on the link weights (weighted), and also node radii if include radii is true, using Dijkstra's algorithm. More...
 
- Public Member Functions inherited from WMG_Events
delegate void WMG_Click_H (WMG_Series aSeries, WMG_Node aNode, PointerEventData pointerEventData)
 
void addNodeClickEvent (GameObject go)
 
delegate void WMG_Link_Click_H (WMG_Series aSeries, WMG_Link aLink, PointerEventData pointerEventData)
 
void addLinkClickEvent (GameObject go)
 
delegate void WMG_Click_Leg_H (WMG_Series aSeries, WMG_Node aNode, PointerEventData pointerEventData)
 
void addNodeClickEvent_Leg (GameObject go)
 
delegate void WMG_Link_Click_Leg_H (WMG_Series aSeries, WMG_Link aLink, PointerEventData pointerEventData)
 
void addLinkClickEvent_Leg (GameObject go)
 
delegate void WMG_Pie_Slice_Click_H (WMG_Pie_Graph pieGraph, WMG_Pie_Graph_Slice aSlice, PointerEventData pointerEventData)
 
void addPieSliceClickEvent (GameObject go)
 
delegate void WMG_Pie_Legend_Entry_Click_H (WMG_Pie_Graph pieGraph, WMG_Legend_Entry legendEntry, PointerEventData pointerEventData)
 
void addPieLegendEntryClickEvent (GameObject go)
 
delegate void WMG_Ring_Click_H (WMG_Ring ring, PointerEventData pointerEventData)
 
void addRingClickEvent (GameObject go)
 
delegate void WMG_MouseEnter_H (WMG_Series aSeries, WMG_Node aNode, bool state)
 
void addNodeMouseEnterEvent (GameObject go)
 
delegate void WMG_Link_MouseEnter_H (WMG_Series aSeries, WMG_Link aLink, bool state)
 
void addLinkMouseEnterEvent (GameObject go)
 
delegate void WMG_MouseEnter_Leg_H (WMG_Series aSeries, WMG_Node aNode, bool state)
 
void addNodeMouseEnterEvent_Leg (GameObject go)
 
delegate void WMG_Link_MouseEnter_Leg_H (WMG_Series aSeries, WMG_Link aLink, bool state)
 
void addLinkMouseEnterEvent_Leg (GameObject go)
 
delegate void WMG_Pie_Slice_MouseEnter_H (WMG_Pie_Graph pieGraph, WMG_Pie_Graph_Slice aSlice, bool state)
 
void addPieSliceMouseEnterEvent (GameObject go)
 
delegate void WMG_Ring_MouseEnter_H (WMG_Ring ring, bool state)
 
void addRingMouseEnterEvent (GameObject go)
 
void addNodeMouseLeaveEvent (GameObject go)
 
void addLinkMouseLeaveEvent (GameObject go)
 
void addNodeMouseLeaveEvent_Leg (GameObject go)
 
void addLinkMouseLeaveEvent_Leg (GameObject go)
 
- Public Member Functions inherited from WMG_GUI_Functions
void SetActive (GameObject obj, bool state)
 
bool activeInHierarchy (GameObject obj)
 
void SetActiveAnchoredSprite (GameObject obj, bool state)
 
void SetActiveImage (GameObject obj, bool state)
 
Texture2D getTexture (GameObject obj)
 
void setTexture (GameObject obj, Sprite sprite)
 
void changeSpriteFill (GameObject obj, float fill)
 
void changeRadialSpriteRotation (GameObject obj, Vector3 newRot)
 
void changeSpriteColor (GameObject obj, Color aColor)
 
void changeSpriteAlpha (GameObject obj, float alpha)
 
float getSpriteAlpha (GameObject obj)
 
void changeSpriteWidth (GameObject obj, int aWidth)
 
void changeSpriteHeight (GameObject obj, int aHeight)
 
void setTextureMaterial (GameObject obj, Material aMat)
 
Material getTextureMaterial (GameObject obj)
 
void changeSpriteSize (GameObject obj, int aWidth, int aHeight)
 
void changeSpriteSizeFloat (GameObject obj, float aWidth, float aHeight)
 
Vector2 getSpriteSize (GameObject obj)
 
void changeBarWidthHeight (GameObject obj, int aWidth, int aHeight)
 
float getSpriteWidth (GameObject obj)
 
float getSpriteHeight (GameObject obj)
 
float getTextWidth (GameObject obj)
 
float getTextHeight (GameObject obj)
 
void forceUpdateText (GameObject obj)
 
void setAnchor (GameObject go, Vector2 anchor, Vector2 pivot, Vector2 anchoredPosition)
 
void setAnchoredPosition (GameObject go, Vector2 anchoredPosition)
 
void stretchToParent (GameObject go)
 
bool rectIntersectRect (GameObject r1, GameObject r2)
 
void getRectDiffs (GameObject child, GameObject container, ref Vector2 xDif, ref Vector2 yDif)
 
float getSpritePositionX (GameObject obj)
 
float getSpritePositionY (GameObject obj)
 
Vector2 getSpritePositionXY (GameObject obj)
 
float getSpritePivotTopToBot (GameObject obj)
 
Vector3 getPositionRelativeTransform (GameObject obj, GameObject relative)
 
void changePositionByRelativeTransform (GameObject obj, GameObject relative, Vector2 delta)
 
void changeSpritePositionTo (GameObject obj, Vector3 newPos)
 
void changeSpritePositionToX (GameObject obj, float newPos)
 
void changeSpritePositionToY (GameObject obj, float newPos)
 
Vector2 getChangeSpritePositionTo (GameObject obj, Vector2 newPos)
 
void changeSpritePositionRelativeToObjBy (GameObject obj, GameObject relObj, Vector3 changeAmt)
 
void changeSpritePositionRelativeToObjByX (GameObject obj, GameObject relObj, float changeAmt)
 
void changeSpritePositionRelativeToObjByY (GameObject obj, GameObject relObj, float changeAmt)
 
Vector2 getSpritePivot (GameObject obj)
 
void changeSpriteParent (GameObject child, GameObject parent)
 
void getFirstCanvasOnSelfOrParent (Transform trans, ref Canvas canv)
 
void addRaycaster (GameObject obj)
 
void setAsNotInteractible (GameObject obj)
 
void bringSpriteToFront (GameObject obj)
 
void sendSpriteToBack (GameObject obj)
 
- Public Member Functions inherited from WMG_Text_Functions
void changeLabelText (GameObject obj, string aText)
 
void changeLabelFontSize (GameObject obj, int newFontSize)
 
Vector2 getTextSize (GameObject obj)
 
void changeSpritePivot (GameObject obj, WMGpivotTypes theType)
 
void changeLabelColor (GameObject obj, Color newColor)
 
void changeLabelFontStyle (GameObject obj, FontStyle newFontStyle)
 
void changeLabelFont (GameObject obj, Font newFont)
 

Public Attributes

List< Color > _bandColors
 
WMG_List< Color > bandColors = new WMG_List<Color>()
 This can be used to override colors of individual bands if it is needed that the color be different than bandColor. More...
 
WMG_List< float > values = new WMG_List<float>()
 The values representing each ring. More...
 
WMG_List< string > labels = new WMG_List<string>()
 The text labels representing each ring. More...
 
WMG_List< string > ringIDs = new WMG_List<string>()
 This can be used to assign a string ID to each ring, and then use getRing to retrieve a ring with the ID. More...
 
WMG_List< bool > hideRings = new WMG_List<bool>()
 Whether or not to hide rings. More...
 
bool animateData
 
float animDuration
 
Ease animEaseType
 
Object ringPrefab
 
GameObject extraRing
 
GameObject background
 
GameObject zeroLine
 
GameObject zeroLineText
 
GameObject ringsParent
 
GameObject ringLabelsParent
 
GameObject contentParent
 
WMG_Data_Source valuesDataSource
 
WMG_Data_Source labelsDataSource
 
WMG_Data_Source ringIDsDataSource
 
Sprite labelLineSprite
 
Sprite botLeftCorners
 
Sprite botRightCorners
 
ComputeShader computeShader
 
int textureResolution = 512
 The resolution of the generated ring / band textures. More...
 
bool _autoUpdateBandAlpha
 
DataLabeler dataLabeler
 
TextureChanger textureChanger
 
ColorChanger colorChanger
 
BandColorsChanger bandColorsChanger
 

Properties

bool bandMode [get, set]
 When band mode is enabled, each ring has a corresponding band, except for the outer most ring. More...
 
bool pieMode [get, set]
 When enabled, the bands of the ring graph are positioned like a doughnut / pie graph where each band represents a percentage of all the bands. More...
 
float pieModePaddingDegrees [get, set]
 When pieMode = true, determines how much space is between each band. More...
 
float pieModeDegreeOffset [get, set]
 When pieMode = true, determines how much the content of the entire graph is rotated. More...
 
float innerRadiusPercentage [get, set]
 This is the radius of the innermost ring relative to the outermost ring. More...
 
float degrees [get, set]
 This is the number of degrees cut out from all the rings and bands. More...
 
float minValue [get, set]
 This is the value that represents the minimum of the ring graph (the left-most side). More...
 
float maxValue [get, set]
 This is the value that represents the maximum of the ring graph (the right-most side). More...
 
Color bandColor [get, set]
 This is the base color given to all bands. More...
 
bool autoUpdateBandAlpha [get, set]
 When enabled, this automatically adjusts the alpha of bandColors, such that the bands gradually fade out, the closer the band is to the center of the graph. More...
 
bool autoUpdateBandAlphaReverse [get, set]
 Reverses the ordering of the band alpha fading for autoUpdateBandAlpha. More...
 
Color ringColor [get, set]
 This is the color given to all the rings More...
 
float ringWidth [get, set]
 This is the width of all of the rings. More...
 
float ringPointWidthFactor [get, set]
 Determines the size of the label points (circles from which label lines are drawn to indicate which ring the to which the label corresponds). More...
 
float bandPadding [get, set]
 This is the padding between rings and bands. More...
 
bool hideZeroLabelLine [get, set]
 Whether to hide the zero label line. More...
 
bool labelStartCenteredOnBand [get, set]
 Whether label lines originate from the center of a band or from the band outer edge. More...
 
Vector2 labelPointSize [get, set]
 Gets or sets the size of the label point. More...
 
float labelLinePadding [get, set]
 The amount of space the label lines extend beyond the outer most ring. More...
 
float labelTextOffset [get, set]
 Gets or sets the label text offset. More...
 
Color labelLineColor [get, set]
 Gets or sets the color of the label line. More...
 
Color labelPointColor [get, set]
 Gets or sets the color of the label point. More...
 
int labelsFontSize [get, set]
 Gets or sets the size of the labels font. More...
 
Color labelsColor [get, set]
 Gets or sets the color of the labels. More...
 
FontStyle labelsFontStyle [get, set]
 Gets or sets the labels font style. More...
 
Font labelsFont [get, set]
 Gets or sets the labels font. More...
 
bool showDataLabels [get, set]
 Whether to show data labels. More...
 
int dataLabelsFontSize [get, set]
 Gets or sets the size of the data labels font. More...
 
Color dataLabelsColor [get, set]
 Gets or sets the color of the data labels. More...
 
FontStyle dataLabelsFontStyle [get, set]
 Gets or sets the data labels font style. More...
 
Font dataLabelsFont [get, set]
 Gets or sets the data labels font. More...
 
Vector2 leftRightPadding [get, set]
 Gets or sets the left right padding of the graph. More...
 
Vector2 topBotPadding [get, set]
 Gets or sets the top bot padding of the graph. More...
 
bool antiAliasing [get, set]
 Whether to apply anti-aliasing during texture generation. More...
 
float antiAliasingStrength [get, set]
 The strength of the anti-aliasing applied during texture generation. More...
 
bool useComputeShader [get, set]
 Whether or not textures for the rings / bands are generated via Compute Shader. More...
 
float outerRadius [get]
 
float RingWidthFactor [get]
 
float labelLineStartOffset [get]
 
float MaxDataVal [get]
 
float MinDataVal [get]
 
List< WMG_Ringrings [get]
 
- Properties inherited from WMG_Graph_Manager
List< GameObject > NodesParent [get]
 The list of GameObjects which are WMG_Nodes for this graph. More...
 
List< GameObject > LinksParent [get]
 The list of GameObjects which are WMG_Links for this graph. More...
 

Additional Inherited Members

- Public Types inherited from WMG_Text_Functions
enum  WMGpivotTypes {
  WMGpivotTypes.Bottom, WMGpivotTypes.BottomLeft, WMGpivotTypes.BottomRight, WMGpivotTypes.Center,
  WMGpivotTypes.Left, WMGpivotTypes.Right, WMGpivotTypes.Top, WMGpivotTypes.TopLeft,
  WMGpivotTypes.TopRight
}
 
- Events inherited from WMG_Events
WMG_Click_H WMG_Click
 Occurs when a series point is clicked. More...
 
WMG_Link_Click_H WMG_Link_Click
 Occurs when a series link / line is clicked. More...
 
WMG_Click_Leg_H WMG_Click_Leg
 Occurs when a series legend node / swatch is clicked. More...
 
WMG_Link_Click_Leg_H WMG_Link_Click_Leg
 Occurs when a series legend link / line is clicked. More...
 
WMG_Pie_Slice_Click_H WMG_Pie_Slice_Click
 Occurs when a pie graph slice is clicked. More...
 
WMG_Pie_Legend_Entry_Click_H WMG_Pie_Legend_Entry_Click
 Occurs when a pie graph legend swatch is clicked. More...
 
WMG_Ring_Click_H WMG_Ring_Click
 Occurs when a ring graph ring / band is clicked. More...
 
WMG_MouseEnter_H WMG_MouseEnter
 Occurs when a series point is hovered. More...
 
WMG_Link_MouseEnter_H WMG_Link_MouseEnter
 Occurs when a series link / line is hovered. More...
 
WMG_MouseEnter_Leg_H WMG_MouseEnter_Leg
 Occurs when a series legend node / swatch is hovered. More...
 
WMG_Link_MouseEnter_Leg_H WMG_Link_MouseEnter_Leg
 Occurs when a series legend link / line is hovered. More...
 
WMG_Pie_Slice_MouseEnter_H WMG_Pie_Slice_MouseEnter
 Occurs when a pie graph slice is hovered. More...
 
WMG_Ring_MouseEnter_H WMG_Ring_MouseEnter
 Occurs when a ring graph ring / band is hovered. More...
 

Detailed Description

Class for creating ring graphs or pie graphs.

Member Function Documentation

◆ bandColorsChanged()

void WMG_Ring_Graph.bandColorsChanged ( bool  editorChange,
bool  countChanged,
bool  oneValChanged,
int  index 
)

◆ BandColorsChanger()

delegate void WMG_Ring_Graph.BandColorsChanger ( )

◆ ColorChanger()

delegate void WMG_Ring_Graph.ColorChanger ( GameObject  obj,
Color  color 
)

◆ DataLabeler()

delegate string WMG_Ring_Graph.DataLabeler ( WMG_Ring_Graph  graph,
float  val 
)

◆ defaultDataLabeler()

string WMG_Ring_Graph.defaultDataLabeler ( WMG_Ring_Graph  graph,
float  val 
)

◆ getRing()

WMG_Ring WMG_Ring_Graph.getRing ( string  id)

Get a ring using the ring ID, where ring IDs are assigned with ringIDs.

Returns
The ring.
Parameters
idIdentifier.

◆ getRingRadius()

float WMG_Ring_Graph.getRingRadius ( int  index)

◆ getRingsSortedByValue()

List<int> WMG_Ring_Graph.getRingsSortedByValue ( )

◆ hideRingsChanged()

void WMG_Ring_Graph.hideRingsChanged ( bool  editorChange,
bool  countChanged,
bool  oneValChanged,
int  index 
)

◆ HighlightRing()

void WMG_Ring_Graph.HighlightRing ( string  id)

Highlight the specified ring using ring ID from ringIDs by setting alpha of all rings except the specified ring to 0.

Parameters
idIdentifier.

◆ Init()

void WMG_Ring_Graph.Init ( )

Initializes the graph, and should always be done before anything else, called automatically in Start(), but it never hurts to call this manually after instantiating a graph prefab.

◆ labelsChanged()

void WMG_Ring_Graph.labelsChanged ( bool  editorChange,
bool  countChanged,
bool  oneValChanged,
int  index 
)

◆ Refresh()

void WMG_Ring_Graph.Refresh ( )

Refreshes the graph, and happens automatically in Update(), but sometimes it is useful or necessary to call this manually, note that refresh updates only the parts of the graph affected by properties that have changed since a last refresh.

◆ RemoveHighlights()

void WMG_Ring_Graph.RemoveHighlights ( )

Reverts ring highlighting function from HighlightRing.

◆ ringIDsChanged()

void WMG_Ring_Graph.ringIDsChanged ( bool  editorChange,
bool  countChanged,
bool  oneValChanged,
int  index 
)

◆ TextureChanger()

delegate void WMG_Ring_Graph.TextureChanger ( GameObject  obj,
Sprite  sprite,
int  textureNum,
float  maxSize,
float  inner,
float  outer,
bool  antiAliasing,
float  antiAliasingStrength,
float  fill 
)

◆ valuesChanged()

void WMG_Ring_Graph.valuesChanged ( bool  editorChange,
bool  countChanged,
bool  oneValChanged,
int  index 
)

Member Data Documentation

◆ _autoUpdateBandAlpha

bool WMG_Ring_Graph._autoUpdateBandAlpha

◆ _bandColors

List<Color> WMG_Ring_Graph._bandColors

◆ animateData

bool WMG_Ring_Graph.animateData

◆ animDuration

float WMG_Ring_Graph.animDuration

◆ animEaseType

Ease WMG_Ring_Graph.animEaseType

◆ background

GameObject WMG_Ring_Graph.background

◆ bandColors

WMG_List<Color> WMG_Ring_Graph.bandColors = new WMG_List<Color>()

This can be used to override colors of individual bands if it is needed that the color be different than bandColor.

◆ bandColorsChanger

BandColorsChanger WMG_Ring_Graph.bandColorsChanger

◆ botLeftCorners

Sprite WMG_Ring_Graph.botLeftCorners

◆ botRightCorners

Sprite WMG_Ring_Graph.botRightCorners

◆ colorChanger

ColorChanger WMG_Ring_Graph.colorChanger

◆ computeShader

ComputeShader WMG_Ring_Graph.computeShader

◆ contentParent

GameObject WMG_Ring_Graph.contentParent

◆ dataLabeler

DataLabeler WMG_Ring_Graph.dataLabeler

◆ extraRing

GameObject WMG_Ring_Graph.extraRing

◆ hideRings

WMG_List<bool> WMG_Ring_Graph.hideRings = new WMG_List<bool>()

Whether or not to hide rings.

◆ labelLineSprite

Sprite WMG_Ring_Graph.labelLineSprite

◆ labels

WMG_List<string> WMG_Ring_Graph.labels = new WMG_List<string>()

The text labels representing each ring.

◆ labelsDataSource

WMG_Data_Source WMG_Ring_Graph.labelsDataSource

◆ ringIDs

WMG_List<string> WMG_Ring_Graph.ringIDs = new WMG_List<string>()

This can be used to assign a string ID to each ring, and then use getRing to retrieve a ring with the ID.

◆ ringIDsDataSource

WMG_Data_Source WMG_Ring_Graph.ringIDsDataSource

◆ ringLabelsParent

GameObject WMG_Ring_Graph.ringLabelsParent

◆ ringPrefab

Object WMG_Ring_Graph.ringPrefab

◆ ringsParent

GameObject WMG_Ring_Graph.ringsParent

◆ textureChanger

TextureChanger WMG_Ring_Graph.textureChanger

◆ textureResolution

int WMG_Ring_Graph.textureResolution = 512

The resolution of the generated ring / band textures.

◆ values

WMG_List<float> WMG_Ring_Graph.values = new WMG_List<float>()

The values representing each ring.

◆ valuesDataSource

WMG_Data_Source WMG_Ring_Graph.valuesDataSource

◆ zeroLine

GameObject WMG_Ring_Graph.zeroLine

◆ zeroLineText

GameObject WMG_Ring_Graph.zeroLineText

Property Documentation

◆ antiAliasing

bool WMG_Ring_Graph.antiAliasing
getset

Whether to apply anti-aliasing during texture generation.

true if anti aliasing; otherwise, false.

◆ antiAliasingStrength

float WMG_Ring_Graph.antiAliasingStrength
getset

The strength of the anti-aliasing applied during texture generation.

The anti aliasing strength.

◆ autoUpdateBandAlpha

bool WMG_Ring_Graph.autoUpdateBandAlpha
getset

When enabled, this automatically adjusts the alpha of bandColors, such that the bands gradually fade out, the closer the band is to the center of the graph.

true if auto update band alpha; otherwise, false.

◆ autoUpdateBandAlphaReverse

bool WMG_Ring_Graph.autoUpdateBandAlphaReverse
getset

Reverses the ordering of the band alpha fading for autoUpdateBandAlpha.

true if auto update band alpha reverse; otherwise, false.

◆ bandColor

Color WMG_Ring_Graph.bandColor
getset

This is the base color given to all bands.

The color of the band.

◆ bandMode

bool WMG_Ring_Graph.bandMode
getset

When band mode is enabled, each ring has a corresponding band, except for the outer most ring.

When disabled, only rings will appear.

true if band mode; otherwise, false.

◆ bandPadding

float WMG_Ring_Graph.bandPadding
getset

This is the padding between rings and bands.

The band padding.

◆ dataLabelsColor

Color WMG_Ring_Graph.dataLabelsColor
getset

Gets or sets the color of the data labels.

The color of the data labels.

◆ dataLabelsFont

Font WMG_Ring_Graph.dataLabelsFont
getset

Gets or sets the data labels font.

The data labels font.

◆ dataLabelsFontSize

int WMG_Ring_Graph.dataLabelsFontSize
getset

Gets or sets the size of the data labels font.

The size of the data labels font.

◆ dataLabelsFontStyle

FontStyle WMG_Ring_Graph.dataLabelsFontStyle
getset

Gets or sets the data labels font style.

The data labels font style.

◆ degrees

float WMG_Ring_Graph.degrees
getset

This is the number of degrees cut out from all the rings and bands.

For example if 90 is specified, then 3/4 of a circle will appear for all rings and bands.

The degrees.

◆ hideZeroLabelLine

bool WMG_Ring_Graph.hideZeroLabelLine
getset

Whether to hide the zero label line.

true if hide zero label line; otherwise, false.

◆ innerRadiusPercentage

float WMG_Ring_Graph.innerRadiusPercentage
getset

This is the radius of the innermost ring relative to the outermost ring.

The radius of the outermost ring is determined by the width / height of the graph rect transform.

The inner radius percentage.

◆ labelLineColor

Color WMG_Ring_Graph.labelLineColor
getset

Gets or sets the color of the label line.

The color of the label line.

◆ labelLinePadding

float WMG_Ring_Graph.labelLinePadding
getset

The amount of space the label lines extend beyond the outer most ring.

The label line padding.

◆ labelLineStartOffset

float WMG_Ring_Graph.labelLineStartOffset
get

◆ labelPointColor

Color WMG_Ring_Graph.labelPointColor
getset

Gets or sets the color of the label point.

The color of the label point.

◆ labelPointSize

Vector2 WMG_Ring_Graph.labelPointSize
getset

Gets or sets the size of the label point.

The size of the label point.

◆ labelsColor

Color WMG_Ring_Graph.labelsColor
getset

Gets or sets the color of the labels.

The color of the labels.

◆ labelsFont

Font WMG_Ring_Graph.labelsFont
getset

Gets or sets the labels font.

The labels font.

◆ labelsFontSize

int WMG_Ring_Graph.labelsFontSize
getset

Gets or sets the size of the labels font.

The size of the labels font.

◆ labelsFontStyle

FontStyle WMG_Ring_Graph.labelsFontStyle
getset

Gets or sets the labels font style.

The labels font style.

◆ labelStartCenteredOnBand

bool WMG_Ring_Graph.labelStartCenteredOnBand
getset

Whether label lines originate from the center of a band or from the band outer edge.

true if label start centered on band; otherwise, false.

◆ labelTextOffset

float WMG_Ring_Graph.labelTextOffset
getset

Gets or sets the label text offset.

The label text offset.

◆ leftRightPadding

Vector2 WMG_Ring_Graph.leftRightPadding
getset

Gets or sets the left right padding of the graph.

The left right padding.

◆ MaxDataVal

float WMG_Ring_Graph.MaxDataVal
get

◆ maxValue

float WMG_Ring_Graph.maxValue
getset

This is the value that represents the maximum of the ring graph (the right-most side).

The max value.

◆ MinDataVal

float WMG_Ring_Graph.MinDataVal
get

◆ minValue

float WMG_Ring_Graph.minValue
getset

This is the value that represents the minimum of the ring graph (the left-most side).

The minimum value.

◆ outerRadius

float WMG_Ring_Graph.outerRadius
get

◆ pieMode

bool WMG_Ring_Graph.pieMode
getset

When enabled, the bands of the ring graph are positioned like a doughnut / pie graph where each band represents a percentage of all the bands.

In this mode bandMode, degrees, minValue, maxValue, ringWidth, and bandPadding no longer matter.

true if pie mode; otherwise, false.

◆ pieModeDegreeOffset

float WMG_Ring_Graph.pieModeDegreeOffset
getset

When pieMode = true, determines how much the content of the entire graph is rotated.

The pie mode degree offset.

◆ pieModePaddingDegrees

float WMG_Ring_Graph.pieModePaddingDegrees
getset

When pieMode = true, determines how much space is between each band.

The pie mode padding degrees.

◆ ringColor

Color WMG_Ring_Graph.ringColor
getset

This is the color given to all the rings

The color of the ring.

◆ ringPointWidthFactor

float WMG_Ring_Graph.ringPointWidthFactor
getset

Determines the size of the label points (circles from which label lines are drawn to indicate which ring the to which the label corresponds).

The ring point width factor.

◆ rings

List<WMG_Ring> WMG_Ring_Graph.rings
get

◆ ringWidth

float WMG_Ring_Graph.ringWidth
getset

This is the width of all of the rings.

The width of the ring.

◆ RingWidthFactor

float WMG_Ring_Graph.RingWidthFactor
get

◆ showDataLabels

bool WMG_Ring_Graph.showDataLabels
getset

Whether to show data labels.

true if show data labels; otherwise, false.

◆ topBotPadding

Vector2 WMG_Ring_Graph.topBotPadding
getset

Gets or sets the top bot padding of the graph.

The top bot padding.

◆ useComputeShader

bool WMG_Ring_Graph.useComputeShader
getset

Whether or not textures for the rings / bands are generated via Compute Shader.

Compute shader should usually always be used, unless the platform to which you are publishing does not support Compute shaders (refer to Unity documentation on Compute Shader).

true if use compute shader; otherwise, false.


The documentation for this class was generated from the following file: