Usage
import { ChartGroup } from 'nr1'
Examples
Basic
1function render() {2const query =3'SELECT count(*) FROM `Synthetics` SINCE 1 DAY AGO TIMESERIES AUTO FACET jobType';4const chartStyle = { height: 200 };56return (7<ChartGroup>8<AreaChart style={chartStyle} accountIds={[1]} query={query} />9<LineChart style={chartStyle} accountIds={[1, 1067061]} query={query} />10<ScatterChart style={chartStyle} accountIds={[1]} query={query} />11</ChartGroup>12);13}
Fill container
1function render() {2const query =3'SELECT count(*) FROM `Synthetics` SINCE 1 DAY AGO TIMESERIES AUTO FACET jobType';4const chartStyle = { height: 200 };56return (7<ChartGroup>8<AreaChart9style={chartStyle}10accountIds={[1]}11query={query}12fullWidth13fullHeight14/>15<LineChart16style={chartStyle}17accountIds={[1, 1067061]}18query={query}19fullWidth20fullHeight21/>22<ScatterChart23style={chartStyle}24accountIds={[1]}25query={query}26fullWidth27fullHeight28/>29</ChartGroup>30);31}
Props
childrenrequirednode
Arbitrary content. All charts inside ChartGroup
communicate between
each other.