Public
Edited
Jul 31, 2023
Insert cell
Insert cell
Insert cell
chat2_out2_1.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
color: { legend: true ,range: myCategoricalColors },
height: 1800,
width: 1000,
insetLeft: 15,
marginLeft: 34,
x: { grid: true },
marks: [
Plot.dot(await FileAttachment("chat2_out2_1.csv").csv({ typed: "auto" }), {
x: "Date",
y: "Time_number",
stroke: "send type",
r: "message count",
title:(d) =>
`${d.message} \n\n By:${d.user} \n Date: ${d.Date_time} `,
tip: true
})
]
})
Insert cell
myCategoricalColors = [ "orange","steelblue"]
Insert cell
Plot.plot({
color: {legend: true, range: mysentimentalColors },
height: 1800,
width: 1000,
insetLeft: 15,
marginLeft: 34,
x: { grid: true },
marks: [
Plot.dot(await FileAttachment("chat2_out2_1.csv").csv({ typed: "auto" }), {
x: "Date",
y: "Time_number",
stroke: "Sentiment_Label",
r: "message count",
title:(d) =>
`${d.message} \n\n By:${d.user} \n Date: ${d.Date_time} \n Mood:${d.Sentiment_Label} `,
tip: true
}),

]
})
Insert cell
mysentimentalColors = ["#DA3237","#F5C10D","#3CBB54"]
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more