Commit ec0e4e12 authored by amarcic's avatar amarcic
Browse files

timeline, zoom: added contraints

parent 6445f223
......@@ -86,6 +86,8 @@ export const TimelineChart = (props) => {
.attr("transform", event.transform);
};
const zimzoom = zoom()
.scaleExtent([1,5])
.translateExtent([[0,0], [width, height]])
.on("zoom", handleZoom);
const initZoom = () => {
svg
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment