[+] Create function to generate base settings

This commit is contained in:
Hykilpikonna
2019-11-09 16:14:58 -05:00
parent ad2c8a1ee8
commit bdacc8dd9e
+27
View File
@@ -4,6 +4,33 @@ export default class GraphUtils
{
static DOT = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:{color}"></span>';
/**
* 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
*/