BubbleData
Create a BubbleData
object.
obj = BubbleData (data)
returns a BubbleData
object, in which data must be an numeric matrix with each
column defining the x-axis
, the y-axis
, and the radius of
each element of a single dataset, respectively. Constructing a
BubbleData
object always assigns the default property values, which
can later be modified using dot notation syntax.
A BubbleData
object, obj, contains the following properties:
Field | Description | |
---|---|---|
backgroundColor | A Color object defining the
color of the face of the bubbles. Default is empty, in which case and a
color is assigned automatically by the Chart.js library. | |
borderColor | A Color object defining the color
of the border circle of the bubbles. Default is empty, in which case a color
is assigned automatically by the Chart.js library. | |
borderWidth | A numeric scalar value defining the width of the bubble’s borders in pixels. Default is 3. | |
clip | A numeric scalar value defining the pixels to clip relative to the chart’s area. Positive value allows overflow, negative value clips that many pixels inside chartArea. Defaults to zero pixels. | |
data | A numeric matrix assigned at construction of the
BubbleData object. It cannot be empty. | |
drawActiveElementsOnTop | A boolean scalar defining
whether to draw the active bubbles of a dataset over the other bubbles of the
dataset. It is true by default. | |
hoverBackgroundColor | A Color object defining
the color of the bubble face, when the mouse hovers over it. Default is
empty, in which case the color is the same as in backgroundColor . | |
hoverBorderColor | A Color object defining
the color of the borders of each bubble, when the mouse hovers over it. Empty
by default, in which case the color is the same as in borderColor . | |
hoverBorderWidth | A numeric scalar value defining the width of the each bubble’s borders in pixels, when the mouse hovers over it. Default is 1. | |
hoverRadius | A numeric scalar value defining the radius of the each bubble in pixels, when the mouse hovers over it. Default is 4. | |
hitRadius | A numeric scalar value defining the additional radius for hit detection in pixels. Default is 1. | |
label | A character vector defining the label of the dataset which appears in the legend and tooltips. | |
order | A numeric scalar defining the order of the dataset, which affects order for stacking, tooltip and legend. | |
pointStyle | A character vector or a boolean value
defining the shape of the bubbles of the dataset. As a character vector, it
can be any of the following values: 'circle' , 'cross' ,
'crossRot' , 'dash' , 'line' , 'rect' ,
'rectRounded' , 'rectRot' , 'star' , 'triangle' ,
and 'none' . By default it is 'circle . As a boolean value,
true defaults to 'circle' and false defaults to
'none' . | |
radius | A numeric scalar defining the bubble radius for the entire dataset. | |
rotation | A numeric scalar defining the bubble rotation in degrees. |
See also: BubbleChart, Color, Fill
Source Code: BubbleData
jsonstring
Generate the JSON string from a BubbleData
object.
jsonstring (obj)
returns a character vector, json,
describing the context of the BubbleData dataset in json format.
See also: BubbleData, BubbleChart