Skip to content

Commit eb28d59

Browse files
committed
Added Subtitle option
1 parent 08ddf59 commit eb28d59

File tree

1 file changed

+17
-0
lines changed
  • chartjs-java-model/src/main/java/software/xdev/chartjs/model/options

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
public class Plugins
2121
{
2222
protected Title title;
23+
protected Title subtitle;
2324
protected Legend legend;
2425
protected Tooltip tooltip;
2526
protected Zoom zoom;
@@ -41,6 +42,22 @@ public Plugins setTitle(final Title title)
4142
this.title = title;
4243
return this;
4344
}
45+
46+
/**
47+
* @see #setSubtitle(Title)
48+
*/
49+
public Title getSubtitle() {
50+
return this.subtitle;
51+
}
52+
53+
/**
54+
* The subtitle configuration is passed into the options.subtitle namespace. The global options for the chart subtitle is
55+
* defined in Chart.defaults.global.subtitle.
56+
*/
57+
public Plugins setSubtitle(Title subtitle) {
58+
this.subtitle = subtitle;
59+
return this;
60+
}
4461

4562
/**
4663
* @see #setLegend(Legend)

0 commit comments

Comments
 (0)