var s_metric = SimpleMetric.make({
"id": "MyMetric_MyType",
"name": "MyMetric",
"srcType": "MyType",
"path": "myPath.myField",
"expression": "avg(avg(normalized.data.myDataField))"
});
var s_spec = EvalMetricsSpec.make({
ids: ["myID1"],
expressions: ["MyMetric"],
start: "2015-01-01",
end: "2019-06-01",
interval: "DAY"
});
c3Viz(MyType.evalMetricsWithMetadata(s_spec,[s_metric]));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter