Skip to content

Instantly share code, notes, and snippets.

@pjkelly
Last active October 4, 2024 20:05
Show Gist options
  • Save pjkelly/b05267394c6e99ce5aa4dbfe91332a97 to your computer and use it in GitHub Desktop.
Save pjkelly/b05267394c6e99ce5aa4dbfe91332a97 to your computer and use it in GitHub Desktop.
{
"data": [
{
"x": ["2023-12-31", "2024-01-07", "2024-01-14", "2024-01-21", "2024-01-28", "2024-02-04", "2024-02-11", "2024-02-18"],
"y": [120000, 80000, 200000, 300000, 180000, 400000, 150000, 500000],
"name": "Spotify",
"type": "bar",
},
{
"x": ["2023-12-31", "2024-01-07", "2024-01-14", "2024-01-21", "2024-01-28", "2024-02-04", "2024-02-11", "2024-02-18"],
"y": [90000, 70000, 150000, 250000, 220000, 300000, 200000, 350000],
"name": "Apple Music",
"type": "bar",
},
{
"x": ["2023-12-31", "2024-01-07", "2024-01-14", "2024-01-21", "2024-01-28", "2024-02-04", "2024-02-11", "2024-02-18"],
"y": [60000, 100000, 180000, 200000, 150000, 250000, 180000, 200000],
"name": "YouTube",
"type": "bar",
},
{
"x": ["2023-12-31", "2024-01-07", "2024-01-14", "2024-01-21", "2024-01-28", "2024-02-04", "2024-02-11", "2024-02-18"],
"y": [40000, 30000, 100000, 150000, 100000, 150000, 120000, 100000],
"name": "Amazon Music",
"type": "bar",
},
{
"x": ["2023-12-31", "2024-01-07", "2024-01-14", "2024-01-21", "2024-01-28", "2024-02-04", "2024-02-11", "2024-02-18"],
"y": [20000, 40000, 70000, 100000, 80000, 100000, 80000, 50000],
"name": "Other",
"type": "bar",
}
],
"layout": {
"title": "TOTAL STREAMS",
"barmode": "stack",
"colorway": [
"rgba(255, 0, 0, 1)",
"rgba(37, 70, 223, 1)",
"rgba(255, 130, 18, 1)",
"rgba(255, 199, 10, 1)",
"rgba(14, 120, 120, 1)",
"rgba(163, 33, 195, 1)",
"rgba(31, 201, 16, 1)",
"rgba(89, 63, 192, 1)",
"rgba(174, 185, 204, 1)"
],
"xaxis": {
"title": "Date",
"tickangle": -45,
"hoverinfo": "none"
},
"yaxis": {
"title": "Streams",
"range": [0, 1300000],
"hoverinfo": "none"
},
"showlegend": true,
"legend": {"title": "DSP Name"},
"annotations": [
{
"x": "2023-12-31",
"y": 330000,
"text": "330k",
"showarrow": false,
"yanchor": "bottom"
},
{
"x": "2024-01-07",
"y": 320000,
"text": "320k",
"showarrow": false,
"yanchor": "bottom"
},
{
"x": "2024-01-14",
"y": 700000,
"text": "700k",
"showarrow": false,
"yanchor": "bottom"
},
{
"x": "2024-01-21",
"y": 1000000,
"text": "1M",
"showarrow": false,
"yanchor": "bottom"
},
{
"x": "2024-01-28",
"y": 730000,
"text": "730k",
"showarrow": false,
"yanchor": "bottom"
},
{
"x": "2024-02-04",
"y": 1200000,
"text": "1.2M",
"showarrow": false,
"yanchor": "bottom"
},
{
"x": "2024-02-11",
"y": 730000,
"text": "730k",
"showarrow": false,
"yanchor": "bottom"
},
{
"x": "2024-02-18",
"y": 1200000,
"text": "1.2M",
"showarrow": false,
"yanchor": "bottom"
}
],
"paper_bgcolor": "rgb(0,0,0)",
"plot_bgcolor": "rgb(0,0,0)",
"font": {
"color": "white"
},
"dragmode": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment