1818import java .util .List ;
1919
2020import software .xdev .chartjs .model .enums .BorderSkipped ;
21+ import software .xdev .chartjs .model .enums .PointStyle ;
2122import software .xdev .chartjs .model .objects .OptionalArray ;
2223
2324
25+ /**
26+ * @see <a href="https://github.com/chartjs/Chart.js/blob/v4.4.4/src/types/index.d.ts#L114">ChartJS Source</a>
27+ */
2428public class BarDataset extends BackgroundBorderHoverDataset <BarDataset , Number >
2529 implements NumberDataset <BarDataset >
2630{
27- private String label ;
28- private String xAxisID ;
29- private String yAxisID ;
30- private final List <BorderSkipped > borderSkipped = new OptionalArray <>();
31- private String stack ;
31+ protected String xAxisID ;
32+ protected String yAxisID ;
33+ protected Number barPercentage ;
34+ protected Number categoryPercentage ;
35+ protected Object barThickness ;
36+ protected Number maxBarThickness ;
37+ protected Number minBarLength ;
38+ protected PointStyle pointStyle ;
39+ protected Boolean grouped ;
40+
41+ protected final List <BorderSkipped > borderSkipped = new OptionalArray <>();
3242
3343 @ Override
3444 protected String defaultType ()
3545 {
3646 return "bar" ;
3747 }
3848
39- public String getLabel ()
40- {
41- return this .label ;
42- }
43-
44- public BarDataset setLabel (final String label )
45- {
46- this .label = label ;
47- return this ;
48- }
49-
5049 public String getXAxisID ()
5150 {
5251 return this .xAxisID ;
@@ -69,6 +68,83 @@ public BarDataset setYAxisID(final String yAxisID)
6968 return this ;
7069 }
7170
71+ public Number getBarPercentage ()
72+ {
73+ return this .barPercentage ;
74+ }
75+
76+ public BarDataset setBarPercentage (final Number barPercentage )
77+ {
78+ this .barPercentage = barPercentage ;
79+ return this ;
80+ }
81+
82+ public Number getCategoryPercentage ()
83+ {
84+ return this .categoryPercentage ;
85+ }
86+
87+ public BarDataset setCategoryPercentage (final Number categoryPercentage )
88+ {
89+ this .categoryPercentage = categoryPercentage ;
90+ return this ;
91+ }
92+
93+ public Object getBarThickness ()
94+ {
95+ return this .barThickness ;
96+ }
97+
98+ public BarDataset setBarThickness (final Object barThickness )
99+ {
100+ this .barThickness = barThickness ;
101+ return this ;
102+ }
103+
104+ public Number getMaxBarThickness ()
105+ {
106+ return this .maxBarThickness ;
107+ }
108+
109+ public BarDataset setMaxBarThickness (final Number maxBarThickness )
110+ {
111+ this .maxBarThickness = maxBarThickness ;
112+ return this ;
113+ }
114+
115+ public Number getMinBarLength ()
116+ {
117+ return this .minBarLength ;
118+ }
119+
120+ public BarDataset setMinBarLength (final Number minBarLength )
121+ {
122+ this .minBarLength = minBarLength ;
123+ return this ;
124+ }
125+
126+ public PointStyle getPointStyle ()
127+ {
128+ return this .pointStyle ;
129+ }
130+
131+ public BarDataset setPointStyle (final PointStyle pointStyle )
132+ {
133+ this .pointStyle = pointStyle ;
134+ return this ;
135+ }
136+
137+ public Boolean getGrouped ()
138+ {
139+ return this .grouped ;
140+ }
141+
142+ public BarDataset setGrouped (final Boolean grouped )
143+ {
144+ this .grouped = grouped ;
145+ return this ;
146+ }
147+
72148 public List <BorderSkipped > getBorderSkipped ()
73149 {
74150 return this .borderSkipped ;
@@ -89,15 +165,4 @@ public BarDataset setBorderSkipped(final List<BorderSkipped> borderSkipped)
89165 }
90166 return this ;
91167 }
92-
93- public String getStack ()
94- {
95- return this .stack ;
96- }
97-
98- public BarDataset setStack (final String stack )
99- {
100- this .stack = stack ;
101- return this ;
102- }
103168}
0 commit comments