Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

JavaScript Code to Create a Zoomable Chart with Zoom && Pan Functionality

The example below illustrates a bubble chart template created using JavaScript that features chart zoom and rotation capabilities.

Table of Contents

The example below illustrates a bubble chart template created using JavaScript that features chart zoom and rotation capabilities.

Like other chart templates in CanvasChart, bubble charts support zoom and pan functionality. Zooming is useful when there are a large number of data points in the chart. You can also navigate through the chart/graph after zooming in using the pan feature.

The example below illustrates a bubble chart template created using JavaScript that includes zoom and rotation features . The article also includes the JavaScript source code for you to edit in your browser or save to your computer for local execution.

JavaScript Code to Create a Zoomable Chart with Zoom && Pan Functionality illustration

 

Source: CanvasJS

Customize Charts

You are free to adjust the properties in the JavaScript code that creates the bubble chart to get the desired result. For example:

  • Turn on Zoom and Pan using zoomEnabled.
  • Zoom in/out along the X-axis, Y-axis, or both axes using zoomType.
  • Open the toolbar using toolbar.
  • Change the color using color.
  • Adjust the opacity when filled using fillOpacity.
  • The border color is indicated by markerBorderColor.
  • The thickness of the border is indicated by markerBorderThickness.

FAQ

What is the main point of javascript code to create a zoomable chart with zoom && pan functionality?

The example below illustrates a bubble chart template created using JavaScript that features chart zoom and rotation capabilities.

Why is this development important?

Key takeaway: The example below illustrates a bubble chart template created using JavaScript that features chart zoom and rotation capabilities.

What are the key takeaways?

Like other chart templates in CanvasChart, bubble charts support zoom and pan functionality.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.