Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
SRF\Graph\GraphFormatter Class Reference

Public Member Functions

 __construct (GraphOptions $options)
 
 getGraph ()
 
 getGraphLegend ()
 

Static Public Member Functions

static getWordWrappedText ( $text, $charLimit)
 

Protected Attributes

 $graphColors
 

Detailed Description

See also
https://www.semantic-mediawiki.org/wiki/Help:Graph_format

GNU GPL v2+

Since
3.2
Author
Sebastian Schmid (gesinn.it)

Member Function Documentation

◆ getGraphLegend()

SRF\Graph\GraphFormatter::getGraphLegend ( )

Creates the graph legend

Returns
string Html::rawElement

◆ getWordWrappedText()

static SRF\Graph\GraphFormatter::getWordWrappedText (   $text,
  $charLimit 
)
static

Returns the word wrapped version of the provided text.

Parameters
string$text
integer$charLimit
Returns
string

Member Data Documentation

◆ $graphColors

SRF\Graph\GraphFormatter::$graphColors
protected
Initial value:
= [
'black',
'red',
'green',
'blue',
'darkviolet',
'gold',
'deeppink',
'brown',
'bisque',
'darkgreen',
'yellow',
'darkblue',
'magenta',
'steelblue2'
]

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

About | General disclaimer | Privacy policy