Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Chennai restaurants

Public visualization

Viewing a saved revision (read-only)

a2c9f9b454574d749d15176e4e289d44

Chennai restaurants

0 stars0🌍 Public
AAkanksha
Last edited Jan 23, 2024
Created on Jan 23, 2024

This example reads a CSV of Chennai restaurant data and converts numerical fields like `Price_for_2`, `Dining_Rating`, `Dining_Rating_Count`, and `Delivery_Rating` to numbers. It then displays the first record as a formatted JSON object within a `<pre>` element using the Vega-Lite data loading and export API. The visualization is a static, text-based preview of the dataset, showcasing the raw structure of the data without any graphical encoding. The implementation relies on JavaScript string interpolation to set the font size and inject the JSON string into the container’s HTML.

AI-generated description

The Penguins Dataset, loaded and parsed as CSV.

Challenge

  • Find 3 datasets on a topic you are interested in
  • For each of those, fork this viz and replace the data
  • Parse the quantitative attributes into numbers
  • Update README.md to indicate the original data source