Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Top Drugs in each rating

Public visualization

Top Drugs in each rating

1 star0🌍 Public
Aaishwarya8615
Last edited Nov 9, 2019
Created on Oct 29, 2019

This bar chart displays the top 80 drugs by rating, sorted in descending order, with each bar representing a drug and its corresponding rating value. The visualization uses a vertical bar layout where drug names appear on the x-axis and ratings on the y-axis, with tooltips revealing the medical condition associated with each drug. Built with Vega-Lite API and D3 v5, the chart loads CSV data from a GitHub gist, sorts the records using D3’s `descending` comparator, and renders interactive tooltips via the vega-tooltip handler.

AI-generated description

Drug Ratings dataset-> Top rated drugs with conditions from Tooltip--> For test Data

Comments

Sign in to join the discussion.

MIT Licensed