Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Coding Challenge: Display Customer Purchase Orders with D 3 . js Objective: fetch this data and create a list item ( i b ) for

Coding Challenge: Display Customer Purchase Orders with D3.js
Objective:
fetch this data and create a list item (ib) for each purchase order, displaying the customer's name, order ID, and purchase amount.
Instructions:
Setup Your Project:
Create an HTML file and include the D3.js library in the sheads section.
Create a JavaScript file ( exarole. js ) where you will implement the logic to load and display the data.
purchase order within an unordered list ( suls) in the body of your HTML document, displaying the customer's name, order ID, and purchase amount for each order.
CSV Data File (purchase_orders.csv ): Ensure your CSV file is properly formatted with headers for customerName, orderId, and purchasehmount .
Here is the csv file for download: purchase orders.csv darr
Data Loading and Display: Modify the provided JavaScript template to effectively load and display the data. Ensure that:
The data from purchase_orders.csv is accurately fetched using d3.dsv.
For each order in the CSV file, a new list item (Lic3) is appended to an unordered list in the document body.
Each list item displays the purchase order's details in the format: "Customer Name - Order ID: Purchase Amount".
Requirements:
Your application must not produce any errors when loaded in a web browser.
Ensure the asynchronous data loading is correctly handled, displaying all purchase orders upon completion.
Utilize D3.js methods for data binding, element creation, and dynamic content generation based on the CSV data.
Submission:
Submit the following files for evaluation:
The HTML file ( index, htmi).
The JavaScript file (example. js ) with your D3.js code.
An example CSV data file (purchase_orders.csv) for testing your application.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago