Skip to main content
Public

Share visualization

Loading preview…

Fork of Line_chart_facebook_users

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Line_chart_facebook_users

0
Ffouzanuddin
Last edited Mar 29, 2022
Created on Mar 29, 2022

This line chart visualizes the average number of likes per account across years, based on a TikTok dataset loaded from a GitHub gist. The code defines the chart margins and scales, plotting the year on the x-axis and average likes on the y-axis. It uses `d3.scaleTime`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.line` to construct the visualization within an SVG. The chart is rendered with a blue polyline and styled axis labels, with the data's numeric values converted from strings for accurate plotting.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed