The CSV file at https://flunky.github.io/cars2017.csv contains average data for 2017 automobile manufacturers. Create a

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

The CSV file at https://flunky.github.io/cars2017.csv contains average data for 2017 automobile manufacturers. Create a

Post by answerhappygod »

The CSV file at https://flunky.github.io/cars2017.csv containsaverage data for 2017 automobile manufacturers.
Create a scatter plot of this data over a 200x200 asfollows.:
- Plot the Average City MPG horizontally on a logarithmicscale.
- Plot the Average Hightway MPG vertically on a logarithmicscale.
- Set the radius of each circle to 2 plus the number ofcylinders for that entry.
- Set the logarithmic scales to base 10, over a domain from 10to 150.
- Use the .tickValues() method of each axis to set four tickvalues at 10, 20, 50 and 100.
- Use the .tickFormat() method of each axis to set the ticks tod3.format("~s").
Given code below:
<html><scriptsrc='https://d3js.org/d3.v5.min.js'></script><style> circle {fill: lightblue; stroke: black;}</style><body onload='init()'><svg width=300 height=300></svg><script>async function init() {
// ANSWER HERE
}</script></body></html>
Result should look like this:
The Csv File At Https Flunky Github Io Cars2017 Csv Contains Average Data For 2017 Automobile Manufacturers Create A 1
The Csv File At Https Flunky Github Io Cars2017 Csv Contains Average Data For 2017 Automobile Manufacturers Create A 1 (26.55 KiB) Viewed 23 times
100 50- 20 10+ 10 20 50 。。 100 8080
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply