var spec = RollupMetricSpec.make( { filter: "MyFieldName == 'value'", expressions: ["MyMetric"], start: "yyyy-mm-dd", end: "yyyy-mm-dd", interval: "DAY", rollupFunc: "AVG" } ); var metricResult = MyType.rollupMetrics(spec); c3Viz(metricResult.MyMetric)
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