Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Viewing a saved revision (read-only)

a31227e80f054e4aaf91c3fe44053bb9

Fork of HTML Starter

0 stars0🌍 Public
Mmadalahyndavi123@gmail.com
Last edited Oct 19, 2025
Created on Oct 19, 2025
Forked from HTML Starter

This example demonstrates sales trends for two products and advertising spend across 150 monthly data points using Plotly's JavaScript API. It renders two interactive charts: a multi-series line chart tracking product sales and scaled ad spend, and a combined bar-and-line chart with dual axes comparing Product A sales against ad spend. The synthetic dataset is generated programmatically in `index.js` with trend, seasonality, and random noise components. Both charts use `Plotly.newPlot` with responsive layouts, unified hover mode, and customized axis styling.

AI-generated description