chartjs
chartjs copied to clipboard
Select value attribute
If I pass chartJs an array of objects, it would be nifty to be able to point out which of the attributes that chartJs should use for value. Let's say for example I get an array of these from an ajax call:
{
"Id" : 1313,
"TimeStamp" : "someTimeStamp",
"Temperature" : 23.4,
"Humidity" : 32.1
}
It would really help if I could tell ChartJs to point to Temperature to plot a temperature graph. and use the TimeStamp for x-labels.