mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
UI: Export sparkline from @grafana/ui and fix a broken storybook page (#47280)
* Chore: export sparkline from @grafana/ui * fix: add missing config to BigValue story * chore: tag Sparkline internal
This commit is contained in:
@@ -71,6 +71,7 @@ export const Basic: Story<StoryProps> = ({
|
|||||||
name: '',
|
name: '',
|
||||||
values: new ArrayVector([1, 2, 3, 4, 3]),
|
values: new ArrayVector([1, 2, 3, 4, 3]),
|
||||||
type: FieldType.number,
|
type: FieldType.number,
|
||||||
|
state: { range: { min: 1, max: 4, delta: 3 } },
|
||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ const defaultConfig: GraphFieldConfig = {
|
|||||||
axisPlacement: AxisPlacement.Hidden,
|
axisPlacement: AxisPlacement.Hidden,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @internal */
|
||||||
export class Sparkline extends PureComponent<SparklineProps, State> {
|
export class Sparkline extends PureComponent<SparklineProps, State> {
|
||||||
constructor(props: SparklineProps) {
|
constructor(props: SparklineProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ export {
|
|||||||
BigValueJustifyMode,
|
BigValueJustifyMode,
|
||||||
BigValueTextMode,
|
BigValueTextMode,
|
||||||
} from './BigValue/BigValue';
|
} from './BigValue/BigValue';
|
||||||
|
export { Sparkline } from './Sparkline/Sparkline';
|
||||||
|
|
||||||
export { Gauge } from './Gauge/Gauge';
|
export { Gauge } from './Gauge/Gauge';
|
||||||
export { Graph } from './Graph/Graph';
|
export { Graph } from './Graph/Graph';
|
||||||
|
|||||||
Reference in New Issue
Block a user