QuadrantChart Class =================== .. php:class:: QuadrantChart Represents a Quadrant Chart .. php:method:: addPoint(Point ...$point) Add point(s) to the Quadrant Chart :param Point ...$point: The point(s) :returns: A new ``QuadrantChart`` instance with the point(s) added :rtype: QuadrantChart .. php:method:: render(array $attributes = []) Renders the diagram :param array $attributes: HTML attributes for the
tag as name=>value pairs
.. note:: The *mermaid* class is added
:returns: Mermaid diagram code in a tag
:rtype: string
.. php:method:: withAxes(array|string $x, array|string $y)
Set the labels for the X and Y axes
:param list|string $x: X-axis label. Either (string) left axis label, or (array) left/right labels
:param list|string $y: Y-axis label. Either (string) bottom axis label, or (array) bottom/top labels
:returns: A new ``QuadrantChart`` instance with axes labels
:rtype: QuadrantChart
.. php:method:: withComment(string $comment)
Set a comment for the Point
:param string $comment: The comment
:returns: A new ``QuadrantChart`` instance with the comment
:rtype: QuadrantChart
.. php:method:: withPoint(Point ...$point)
Set point(s) on the Quadrant Chart
:param Point ...$point: The point(s)
:returns: A new ``QuadrantChart`` instance with the point(s)
:rtype: QuadrantChart
.. php:method:: withQuadrants(string $tr, string $tl, string $bl, string $br)
Set the quadrant labels
:param string $tr: Label for the Top Right quadrant
:param string $tl: Label for the Top Left quadrant
:param string $bl: Label for the Bottom Left quadrant
:param string $br: Label for the Bottom Right quadrant
:returns: A new ``QuadrantChart`` instance with the quadrant labels
:rtype: QuadrantChart
.. php:method:: withTitle(string $title)
Set a title for the Quadrant Chart
:param string $title: The title
:returns: A new ``QuadrantChart`` instance with the title
:rtype: QuadrantChart