Ensured tooltips are not intersect for bar charts

This commit is contained in:
Alejandro Celaya 2018-10-30 20:41:36 +01:00
parent 0c1c471714
commit 822afa6db7
2 changed files with 5 additions and 2 deletions

View file

@ -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>

View file

@ -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} />;