mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 02:07:26 +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 'bootstrap/dist/css/bootstrap.min.css';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import { BrowserRouter } from 'react-router-dom';
|
import { BrowserRouter } from 'react-router-dom';
|
||||||
import { applyMiddleware, compose, createStore } from 'redux';
|
import { applyMiddleware, compose, createStore } from 'redux';
|
||||||
|
@ -20,7 +20,7 @@ const store = createStore(reducers, composeEnhancers(
|
||||||
applyMiddleware(ReduxThunk)
|
applyMiddleware(ReduxThunk)
|
||||||
));
|
));
|
||||||
|
|
||||||
ReactDOM.render(
|
render(
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
<ScrollToTop>
|
<ScrollToTop>
|
||||||
|
|
|
@ -76,6 +76,9 @@ const renderGraph = (title, isBarChart, stats, matchMedia) => {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
} : null,
|
} : null,
|
||||||
|
tooltips: {
|
||||||
|
intersect: !isBarChart,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return <Component data={generateGraphData(title, isBarChart, labels, data)} options={options} height={null} />;
|
return <Component data={generateGraphData(title, isBarChart, labels, data)} options={options} height={null} />;
|
||||||
|
|
Loading…
Reference in a new issue