mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
GraphNG: uPlot 1.6.17 (#41663)
This commit is contained in:
@@ -17,6 +17,7 @@ import { defaultColors, MarketOptions, MarketTrendMode } from './models.gen';
|
||||
import { ScaleProps } from '@grafana/ui/src/components/uPlot/config/UPlotScaleBuilder';
|
||||
import { AxisProps } from '@grafana/ui/src/components/uPlot/config/UPlotAxisBuilder';
|
||||
import { prepareCandlestickFields } from './fields';
|
||||
import uPlot from 'uplot';
|
||||
|
||||
interface MarketPanelProps extends PanelProps<MarketOptions> {}
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ import { VizLegendOptions, AxisPlacement, ScaleDirection, ScaleOrientation } fro
|
||||
import { TimelineFieldConfig, TimelineOptions } from './types';
|
||||
import { PlotTooltipInterpolator } from '@grafana/ui/src/components/uPlot/types';
|
||||
import { preparePlotData } from '../../../../../packages/grafana-ui/src/components/uPlot/utils';
|
||||
import uPlot from 'uplot';
|
||||
|
||||
const defaultConfig: TimelineFieldConfig = {
|
||||
lineWidth: 0,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { PlotSelection, UPlotConfigBuilder } from '@grafana/ui';
|
||||
import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
|
||||
import { useMountedState } from 'react-use';
|
||||
import { AnnotationEditor } from './annotations/AnnotationEditor';
|
||||
import uPlot from 'uplot';
|
||||
|
||||
type StartAnnotatingFn = (props: {
|
||||
// pixel coordinates of the clicked point on the uPlot canvas
|
||||
|
||||
@@ -2,6 +2,7 @@ import { colorManipulator, DataFrame, DataFrameFieldIndex, DataFrameView, TimeZo
|
||||
import { EventsCanvas, UPlotConfigBuilder, useTheme2 } from '@grafana/ui';
|
||||
import React, { useCallback, useEffect, useLayoutEffect, useRef } from 'react';
|
||||
import { AnnotationMarker } from './annotations/AnnotationMarker';
|
||||
import uPlot from 'uplot';
|
||||
|
||||
interface AnnotationsPluginProps {
|
||||
config: UPlotConfigBuilder;
|
||||
|
||||
@@ -10,6 +10,7 @@ import {
|
||||
import { EventsCanvas, FIXED_UNIT, UPlotConfigBuilder } from '@grafana/ui';
|
||||
import React, { useCallback, useLayoutEffect, useRef } from 'react';
|
||||
import { ExemplarMarker } from './ExemplarMarker';
|
||||
import uPlot from 'uplot';
|
||||
|
||||
interface ExemplarsPluginProps {
|
||||
config: UPlotConfigBuilder;
|
||||
|
||||
@@ -2,6 +2,7 @@ import React, { useState, useLayoutEffect, useMemo, useRef } from 'react';
|
||||
import { FieldConfigSource, ThresholdsConfig, getValueFormat } from '@grafana/data';
|
||||
import { UPlotConfigBuilder, FIXED_UNIT } from '@grafana/ui';
|
||||
import { ThresholdDragHandle } from './ThresholdDragHandle';
|
||||
import uPlot from 'uplot';
|
||||
|
||||
const GUTTER_SIZE = 60;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user