mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
add test
This commit is contained in:
@@ -2537,3 +2537,19 @@ function style_grid() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// set colors via function
|
||||
c3.generate({
|
||||
bindto: '#chart',
|
||||
data: {
|
||||
columns: [
|
||||
['data1', ...[]],
|
||||
],
|
||||
type: 'bar',
|
||||
colors: {
|
||||
data1: (d: any) => {
|
||||
return d.value > 90 ? 'green' : 'orange';
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user