Skip to content

Commit 3984ad4

Browse files
authored
Merge pull request #142 from aripddev/develop
Added missing options #141, #143, #144
2 parents d6a22cb + 115f805 commit 3984ad4

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

chartjs-java-model/src/main/java/software/xdev/chartjs/model/dataset/BubbleDataset.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import java.util.List;
1919

2020
import software.xdev.chartjs.model.datapoint.BubbleDataPoint;
21+
import software.xdev.chartjs.model.enums.PointStyle;
2122
import software.xdev.chartjs.model.objects.OptionalArray;
2223

2324

@@ -34,6 +35,8 @@ public class BubbleDataset extends RoundDataset<BubbleDataset, BubbleDataPoint>
3435
{
3536
private final List<Integer> hoverRadius = new OptionalArray<>();
3637

38+
private PointStyle pointStyle;
39+
3740
@Override
3841
protected String defaultType()
3942
{
@@ -72,4 +75,15 @@ public List<Integer> getHoverRadius()
7275
{
7376
return this.hoverRadius;
7477
}
78+
79+
public PointStyle getPointStyle()
80+
{
81+
return this.pointStyle;
82+
}
83+
84+
public BubbleDataset setPointStyle(final PointStyle pointStyle)
85+
{
86+
this.pointStyle = pointStyle;
87+
return this;
88+
}
7589
}

chartjs-java-model/src/main/java/software/xdev/chartjs/model/enums/PointStyle.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public enum PointStyle
2525
CIRCLE,
2626
TRIANGLE,
2727
RECT,
28+
RECT_ROUNDED,
2829
RECT_ROT,
2930
CROSS,
3031
CROSS_ROT,

chartjs-java-model/src/main/java/software/xdev/chartjs/model/options/Plugins.java

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717

1818
import software.xdev.chartjs.model.options.plugins.zoom.Zoom;
1919

20+
2021
public class Plugins
2122
{
2223
protected Title title;
24+
protected Title subtitle;
2325
protected Legend legend;
2426
protected Tooltip tooltip;
2527
protected Zoom zoom;
26-
28+
2729
/**
2830
* @see #setTitle(Title)
2931
*/
@@ -42,6 +44,24 @@ public Plugins setTitle(final Title title)
4244
return this;
4345
}
4446

47+
/**
48+
* @see #setSubtitle(Title)
49+
*/
50+
public Title getSubtitle()
51+
{
52+
return this.subtitle;
53+
}
54+
55+
/**
56+
* The subtitle configuration is passed into the options.subtitle namespace. The global options for the chart
57+
* subtitle is defined in Chart.defaults.global.subtitle.
58+
*/
59+
public Plugins setSubtitle(final Title subtitle)
60+
{
61+
this.subtitle = subtitle;
62+
return this;
63+
}
64+
4565
/**
4666
* @see #setLegend(Legend)
4767
*/
@@ -83,7 +103,7 @@ public Plugins setTooltip(final Tooltip tooltip)
83103
this.tooltip = tooltip;
84104
return this;
85105
}
86-
106+
87107
/**
88108
* @see #setZoom(Zoom)
89109
*/

0 commit comments

Comments
 (0)