in src/settings.ts [73:105]
public static PARSE_SETTINGS(dataView: DataView, colorPalette?: IColorPalette): Settings {
const settings: Settings = this.parse<Settings>(dataView);
const colorHelper: ColorHelper = new ColorHelper(colorPalette);
settings.axis.color = colorHelper.getHighContrastColor(
"foreground",
settings.axis.color
);
settings.dataPoint.defaultColor = colorHelper.getHighContrastColor(
"background",
settings.dataPoint.defaultColor
);
settings.labels.color = colorHelper.getHighContrastColor(
"foreground",
settings.labels.color
);
settings.chord.strokeColor = colorHelper.getHighContrastColor(
"foreground",
settings.chord.strokeColor
);
if (colorPalette && colorHelper.isHighContrast) {
settings.chord.strokeWidth = settings.chord.strokeWidthMax;
} else {
settings.chord.strokeWidth = settings.chord.strokeWidthMin;
}
return settings;
}