File tree Expand file tree Collapse file tree
chartjs-java-model/src/main/java/software/xdev/chartjs/model/options Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020public 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)
You can’t perform that action at this time.
0 commit comments