{
"$schema": "https://vega.github.io/schema/vega-lite/v6.json",
"description": "Temperature vs DTG/DSC/TG (curves)",
"width": 820,
"height": 380,
"data": {
"url": "/usr/uploads/data/ExpDat_1_clean.csv",
"format": {
"type": "csv",
"parse": {
"Temp_C": "number",
"DTG": "number",
"DSC": "number",
"TG": "number"
}
}
},
"encoding": {
"x": {
"field": "Temp_C",
"type": "quantitative",
"title": "Temperature (°C)"
}
},
"layer": [
{
"mark": {
"type": "line",
"interpolate": "monotone",
"color": "#e11d48",
"strokeWidth": 2
},
"encoding": {
"y": {
"field": "DTG",
"type": "quantitative",
"title": "DTG (%/min)",
"axis": {
"orient": "left",
"titleColor": "#e11d48",
"labelColor": "#e11d48"
}
}
}
},
{
"mark": {
"type": "line",
"interpolate": "monotone",
"color": "#2563eb",
"strokeWidth": 2
},
"encoding": {
"y": {
"field": "DSC",
"type": "quantitative",
"title": "DSC (mW/mg)",
"axis": {
"orient": "right",
"offset": 0,
"titleColor": "#2563eb",
"labelColor": "#2563eb"
}
}
}
},
{
"mark": {
"type": "line",
"interpolate": "monotone",
"color": "#16a34a",
"strokeWidth": 2
},
"encoding": {
"y": {
"field": "TG",
"type": "quantitative",
"title": "TG (%)",
"axis": {
"orient": "right",
"offset": 58,
"titleColor": "#16a34a",
"labelColor": "#16a34a"
}
}
}
}
],
"resolve": {
"scale": {
"y": "independent"
}
}
}