mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-12 02:23:49 +00:00
Ensured tooltips are not intersect for bar charts
This commit is contained in:
@@ -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} />;
|
||||||
|
|||||||
Reference in New Issue
Block a user