Bar Chart
This bar chart visualizes the latest temperature readings from seven cities, using live data from the Data Canvas - Sense Your City API. Built with D3 v3 and an SVG rendering approach, it follows a reactive model-based architecture: the chart derives its width, height, scales, and axes from a set of properties, automatically updating when data or configuration changes. The X axis displays city names sorted by temperature, while the Y axis encodes the temperature values. The visualization includes animated transitions, a title, and axis labels, and is implemented as a reusable module that supports sorting and customizable margins. The data updates every five minutes, reflecting the most recent sensor readings.
AI-generated descriptionThis program makes a bar chart from data in the Data Canvas - Sense Your City API.
This shows the temperature for all cities with available data. The data is up to date, and updates every 5 minutes.
Based on Data Canvas Part 2 - Line Chart
The reactive flow of the bar chart. The diagram was constructed using the reactive flow diagram renderer.