Skip to content

Commit e1146fe

Browse files
committed
Add styles for ChartMonitor
1 parent 1d74f02 commit e1146fe

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/app/containers/Monitor.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ const monitorTypes = location.hash ? location.hash.substr(1).split('/') : {};
1010
export default (props) => {
1111
switch (monitorTypes[0]) {
1212
case 'SliderMonitor': return createElement(SliderMonitor, props);
13-
case 'ChartMonitor': return createElement(ChartMonitor, { ...props, defaultIsVisible: true });
13+
case 'ChartMonitor': return createElement(ChartMonitor, {
14+
...props, defaultIsVisible: true, invertTheme: true,
15+
tooltipOptions: {
16+
style: {
17+
'background-color': '#ffffff',
18+
'opacity': '0.9',
19+
'border-radius': '5px',
20+
'padding': '5px'
21+
}
22+
}
23+
});
1424
case 'DiffMonitor': return createElement(DiffMonitor, props);
1525
case 'InspectorMonitor': return createElement(InspectorMonitor, props);
1626
default: return createElement(LogMonitor, { ...props, preserveScrollTop: false });

0 commit comments

Comments
 (0)