Skip to main content
100%

Ebenezer's VizHub Assignment

✓ Published0🌍 Public
Eeaaarmah
Last edited Jul 28, 2020
Created on Jul 27, 2020
Forked from Making a Bar Chart

This bar chart displays the median PTEN gene expression across various human tissues, with each bar color-coded by tissue type based on a tissue_info.json file. The visualization aggregates individual sample measurements from a gene expression JSON file, calculating the median expression per tissue using `d3.median`. Users can sort the bars alphabetically or by descending median value through `sortEntries`. The SVG chart is rendered using `d3.scaleBand` and `d3.scaleLinear`, with axes generated via `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

This bar chart shows the gene expression for a gene based on a JSON file

It takes as input two json files (a gene_expression file and a tissue_info file)

The bar chart could be color coded based on the user's input The bar chart can be sorted alphabetically (ascending) or by median value (descending)

The entry point for this application is the index.js file

MIT Licensed

Similar vizzes