diff --git a/src/logic/utils/graph-utils.ts b/src/logic/utils/graph-utils.ts index 665a1ec..b2242e2 100644 --- a/src/logic/utils/graph-utils.ts +++ b/src/logic/utils/graph-utils.ts @@ -4,6 +4,33 @@ export default class GraphUtils { static DOT = ''; + /** + * Base settings + * + * @param title + * @param subtitle + */ + static getBaseSettings(title?: String, subtitle?: String) + { + return { + // Color + color: Constants.THEME.colors, + + // Title + title: + { + show: title != null, + textStyle: + { + fontSize: 13 + }, + text: title, + subtext: subtitle, + x: 'center' + }, + } + } + /** * Get term mark lines */