{
+ scatterChartRef.current = chart;
+ }}
+ {...commonProps}
+ chartHeight={350}
+ ariaLabel="Scatter chart"
+ onHighlight={onScatterHighlight}
+ onClearHighlight={onScatterClearHighlight}
+ options={{
+ series: scatterSeries,
+ xAxis: [{ type: "datetime", title: { text: "" }, valueFormatter: dateFormatter }],
+ yAxis: [{ title: { text: "Events" } }],
+ }}
+ navigator={
+
+ {
+ navigatorChartRef.current = chart;
+ }}
+ {...commonProps}
+ tooltip={{ enabled: false }}
+ legend={{ enabled: false }}
+ emphasizeBaseline={false}
+ chartHeight={120}
+ ariaLabel="Zoom navigator"
+ verticalAxisTitlePlacement="side"
+ onHighlight={onNavigatorHighlight}
+ onClearHighlight={onNavigatorClearHighlight}
+ options={{
+ chart: {
+ zooming: { type: "x" },
+ events: {
+ selection(event) {
+ setZoom([event.xAxis[0].min, event.xAxis[0].max]);
+ return false;
+ },
+ },
+ },
+ series: navigatorSeries,
+ xAxis: [
+ {
+ type: "datetime",
+ title: { text: "Time (UTC)" },
+ tickInterval: 1000 * 60 * 60 * 2,
+ plotBands: zoomRange
+ ? [
+ {
+ from: zoomRange[0],
+ to: zoomRange[1],
+ color: colorChartsLineTick,
+ borderColor: colorChartsBlue1400,
+ borderWidth: 1,
+ },
+ ]
+ : undefined,
+ valueFormatter: dateFormatter,
+ },
+ ],
+ yAxis: [{ title: { text: "" } }],
+ }}
+ />
+
+ }
+ />
+