Skip to main content
100%

circularbrush.filter

✓ Published0🌍 Public
FFerjopero
Last edited Jul 27, 2018
Created on Jul 27, 2018

This circular brushable radial chart visualizes daily weather data from `cloud_rain_freeze.json`, encoding each day as a point along a circular axis based on date, with categorical weather conditions (clear, cloudy, overcast, scattered; rain/freeze booleans) determining radial positioning or color. The chart introduces a custom `circularbrush.filter(array, accessor)` method, which efficiently returns only the data points that intersect the circular brush's angular extent, improving on the original implementation. Rendered in SVG, users can drag the circular brush to filter the dataset interactively, with brushed data highlighted in real time. This example demonstrates a more performant approach to circular brushing, building on an earlier block by emeeks.

AI-generated description

The earlier example of this brushable radial chart led to some feedback to make the filtering better. I introduced a #circularBrush.filter(array,accessor) that takes an array of data and and accessor for that data and returns to you the data that falls into the area of the brush. The functionality of this chart is no different than the other, but if you take a look at the code, it's much more efficient.

forked from <a href='http://bl.ocks.org/emeeks/'>emeeks</a>'s block: <a href='http://bl.ocks.org/emeeks/b57f4cc89dacd38fcdcd'>circularbrush.filter</a>

mit Licensed

Similar vizzes