All examples By author By category About

ColinEberhardt

Canvas Chart Zoom

This example demonstrates the rendering of 10,000 datapoints with pan / zoom via d3-zoom. As you manipulate the chart it is being re-rendered by invoking selection.call on the top level component. Rendering the data to Canvas is approximately x10 faster than SVG in this case.

The visual d3fc components support rendering to both Canvas and SVG. In this case the cartesianCanvasChart and seriesCanvasPoint are used to render the chart. You can swap then for SVG simply by changing the to cartesianSvgChart and seriesSvgPoint.