md`### Import any bar chart from vega--lite and display the data from "samlpe3@1.csv" file
* The file can be found in the attached files section`
//Code
import{vl}from"@vega/vega-lite-api"
input_data=FileAttachment("alphabet.csv").csv()// about file attachments https://observablehq.com/@observablehq/file-attachments
// about viewof https://observablehq.com/@observablehq/a-brief-introduction-to-viewof
viewofmy_bar_chart=vl.markBar()// Make a bar chart
.data(input_data)// Using the alphabet data
.encode(
vl.x().fieldO("letter"),// .sort(vl.fieldQ("frequency").order("descending")), // Letters are ordinal on the x-axis
vl.y().fieldQ("frequency").axis({format:"%"})// Frequency on the y-axis, formatted as percent
)
.render()
//Sample
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.