Summing metric results for display in c3Viz?

Is there a way to sum the time series values from multiple metrics and display it with c3Viz? Ex (which doesn’t work):

c3Viz(MyType.evalMetrics(
{
ids: [‘thisid’],
expressions:[‘metric1’],
start: “2018-11-01”,
end: “2019-02-01”,
interval: “DAY”
})+MyType.evalMetrics(
{
ids: [‘thisid’],
expressions:[‘metric2’],
start: “2018-11-01”,
end: “2019-02-01”,
interval: “DAY”
}))

I’m aware there are ways to do this in the notebook etc, I just have use cases where I want to examine this in the console in this manner.

You could do:

c3Viz(MyType.evalMetrics({
  ids: ['thisid'],
  expressions:['metric1 + metric2'],
  start: '2018-11-01',
  end: '2019-02-01',
  interval: 'DAY'
}))
1 Like