Skip to content

DatasetConfig Class

The DatasetConfig class represents a dataset on a graph. It lets you configure the display style and options of this dataset on the graph.

Some attributes can be read and changed with get and set :

  • label : Label to display in the legend.
  • linecolor : The color of the line segments.
  • linestyle : The style for element lines (SOLID, DOTTED, DASHED).
  • linewidth : The width of the joining lines (0, 1, 2, 3, or 4).
  • fillarea : The color for the area fill (empty for no fill).
  • fillbase : The base value for the area fill:
    • TOP: Fill from the top of the graph down to the data curve.
    • BOTTOM: Fill from the bottom of the graph up to the data curve.
    • MIN: Fill from the minimum dataset value up to the data curve.
    • MINAXIS: Fill from the minimum automatic axis value up to the data curve.
    • MAX: Fill from the maximum dataset value down to the data curve.
    • MAXAXIS: Fill from the maximum automatic axis value down to the data curve.
    • value: Numerical value, fill from the value up or down to the data curve.
  • segment : The segment style for element lines (LINEAR, STEP).
  • symbol : The symbol for the element (SQUARE, CIRCLE, DIAMOND, PLUS, CROSS, SPLUS, SCROSS, TRIANGLE, ARROW, or NONE).
  • symbolfill : The color for the symbol interior.
  • symboloutline : The color for the symbol outline.
  • symbolsize : The size of the symbol (SMALL (8), MEDIUM (12), LARGE (16), or a number from 4 to 100).

Public Functions

get{ attribute }
set{ attribute value }


Detailed Functions Descriptions

get

get{ attribute }

Get an attribute of the dataset configuration. See the list of attributes in the DatasetConfig description.

Parameters :

  • attribute : The attribute name to fetch.

Return : The attribute value.

set

set{ attribute value }

Set an attribute of the dataset configuration. See the list of attributes in the DatasetConfig description.

Parameters :

  • attribute : The attribute name to set.

  • value : The value to set to the attribute.