You must be logged in to post your query.
Home › Forums › Chart Support › Hard to zoom around corners of graph
Tagged: scatter plot, zoom
Hi, I had a question regarding zooming around corners of a graph.
It’s hard to zoom around the edges of the graph since the user might move the mouse cursor slightly off the axis. My chart data is generated dynamically, so there’s no way to know what the min/max are going to be along X and Y axis.
Is there anyway to add margin around the corners? So, for example if I have a data point at (x,y), by adding this margin the chart axis would be upto (x+margin) and (y+margin). In a way, it’s essentially adding margin to whatever min/max viewport values are generated dynamically based on data.
Another way can be adding a margin around the corners of selecting region on plot without changing the axis min/max.
You can set viewportMaximum for x-axis with some margin upon updating dataPoints as shown in this JSFiddle.
You must be logged in to reply to this topic. Login/Register