Class Bar
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Bar
Bars with heights proportional to the value.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Bar
Constructor.- Parameters:
data- n x 2 array. data[][0] is the x coordinate of bar, data[][1] is the height of bar.width- the width of bars.color- the color of bars.
-
-
Method Details
-
paint
-
of
Creates a bar shape.- Parameters:
x- the bar data.- Returns:
- a bar shape.
-
of
Creates a bar shape.- Parameters:
x- the bar data.- Returns:
- a bar shape.
-