mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-09 09:47:28 +03:00
Ensured tooltips are not intersect for bar charts
This commit is contained in:
parent
0c1c471714
commit
822afa6db7
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { render } from 'react-dom';
|
||||
import { Provider } from 'react-redux';
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
import { applyMiddleware, compose, createStore } from 'redux';
|
||||
|
@ -20,7 +20,7 @@ const store = createStore(reducers, composeEnhancers(
|
|||
applyMiddleware(ReduxThunk)
|
||||
));
|
||||
|
||||
ReactDOM.render(
|
||||
render(
|
||||
<Provider store={store}>
|
||||
<BrowserRouter>
|
||||
<ScrollToTop>
|
||||
|
|
|
@ -76,6 +76,9 @@ const renderGraph = (title, isBarChart, stats, matchMedia) => {
|
|||
},
|
||||
],
|
||||
} : null,
|
||||
tooltips: {
|
||||
intersect: !isBarChart,
|
||||
},
|
||||
};
|
||||
|
||||
return <Component data={generateGraphData(title, isBarChart, labels, data)} options={options} height={null} />;
|
||||
|
|
Loading…
Reference in a new issue