mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Refactor and unify option creation between new visualizations (#33867)
* Refactor and unify option creation between new visualizations * move to grafana/ui * move to grafana/ui * resolve duplicate scale config * more imports Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
getFieldDisplayName,
|
||||
getFieldSeriesColor,
|
||||
GrafanaTheme2,
|
||||
histogramBucketSizes,
|
||||
} from '@grafana/data';
|
||||
import {
|
||||
Themeable2,
|
||||
@@ -16,12 +15,15 @@ import {
|
||||
VizLayout,
|
||||
AxisPlacement,
|
||||
ScaleDirection,
|
||||
ScaleDistribution,
|
||||
ScaleOrientation,
|
||||
} from '@grafana/ui';
|
||||
|
||||
import { histogramFrameBucketMaxFieldName } from '@grafana/data/src/transformations/transformers/histogram';
|
||||
import {
|
||||
histogramBucketSizes,
|
||||
histogramFrameBucketMaxFieldName,
|
||||
} from '@grafana/data/src/transformations/transformers/histogram';
|
||||
import { PanelOptions } from './models.gen';
|
||||
import { ScaleDistribution } from '@grafana/ui/src/components/uPlot/models.gen';
|
||||
|
||||
export interface HistogramProps extends Themeable2 {
|
||||
options: PanelOptions; // used for diff
|
||||
|
||||
Reference in New Issue
Block a user