colored tooltip for discrete mode

- fix multiple values notes
- fix legend padding
This commit is contained in:
Ivan Mikheykin
2018-08-30 15:26:56 +03:00
parent 3aa6c86945
commit b5ed3f47fc
5 changed files with 33 additions and 15 deletions
+4 -1
View File
@@ -16,7 +16,10 @@ export class ColorModeDiscrete {
for (let i = 0; i < thresholds.length; i++) {
for (let j = 0; j < values.length; j++) {
if (values[j] == thresholds[i].value) {
tooltips.push(thresholds[i].tooltip);
tooltips.push({
"tooltip": thresholds[i].tooltip,
"color": thresholds[i].color
});
}
}
}