Consider the chart here
I need the legend at the top to show what it means when the graph is “yellow” (which is only sometimes to indicate that the value is “Estimated”). Is there a way to do this?
{
"type": "bar",
"data": {
"labels": [
"03/24",
"03/25",
"03/26"
],
"yAxisID": "A",
"datasets": [
{
"type": "line",
"label": "Low Temp",
"borderColor": "rgb(0,0,204)",
"borderWidth": 2,
"fill": "false",
"data": [],
"yAxisID": "B"
},
{
"type": "line",
"label": "High Temp",
"borderColor": "rgb(204,0,0)",
"borderWidth": 2,
"fill": "false",
"data": [],
"yAxisID": "B"
},
{
"label": "Actual",
"xAxisID": "C",
"type": "bar",
"data": [
7,
8,
19
],
"borderColor": "rgb(255, 255, 255)",
"borderWidth": 2,
"backgroundColor": [
"rgb(0,255,0)",
"rgb(0,255,0)",
"rgb(234,214,124)"
]
}
]
},
"options": {
"responsive": "true",
"title": {
"display": "true",
"text": "Daily Usage History"
},
"legend": {
"display": "true",
"reverse": "true"
},
"scales": {
"yAxes": [
{
"id": "A",
"display": "true",
"type": "linear",
"scaleLabel": {
"display": "true",
"labelString": "Usage(KWH)"
},
"ticks": {
"fontColor": "rgb(0,0,0)",
"min": 0,
"max": 100
},
"gridLines": {
"display": "false"
}
},
{
"id": "B",
"display": "true",
"type": "linear",
"position": "right",
"scaleLabel": {
"display": "true",
"labelString": "Temperature"
},
"ticks": {
"fontColor": "rgb(0,0,0)",
"min": 0,
"max": 120
},
"gridLines": {
"display": "false"
}
}
],
"xAxes": [
{
"id": "C",
"display": "true",
"scaleLabel": {
"display": "true",
"labelString": "Day"
}
}
]
},
"tooltips": {
"mode": "index",
"intersect": "true"
},
"plugins": {
"datalabels": {
"id": "A",
"anchor": "center",
"align": "top",
"color": "rgb(102, 102, 102)",
"font": {
"weight": "bold"
}
}
}
}
}