mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 09:33:34 -06:00
* Remove crufty scuemata bits Buhbye to: cue/ dir with old definitions, CI steps for checking unnecessary things, and the original dashboard scuemata file. * Remove grafana-cli cue subcommand * Remove old testdata * Don't swallow errors from codegen * Small nits and tweaks to cuectx package * WIP - refactor pluggen to use Thema Also consolidate the embed.FS in the repo root. * Finish halfway rename * Convert all panel models.cue to thema * Rewrite pluggen to use Thema * Remove pkg/schema, and trim command * Remove schemaloader service and usages Will be replaced by coremodel-centric hydrate/dehydrate system Soon™. * Remove schemaloader from wire * Remove hangover field on histogram models.cue * Fix lint errors, some vestiges of trim service * Remove unused cuetsify cli command
51 lines
1.4 KiB
CUE
51 lines
1.4 KiB
CUE
// Copyright 2021 Grafana Labs
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package grafanaschema
|
|
|
|
import (
|
|
"github.com/grafana/thema"
|
|
ui "github.com/grafana/grafana/packages/grafana-schema/src/schema"
|
|
)
|
|
|
|
Panel: thema.#Lineage & {
|
|
name: "barchart"
|
|
seqs: [
|
|
{
|
|
schemas: [
|
|
{
|
|
PanelOptions: {
|
|
ui.OptionsWithLegend
|
|
ui.OptionsWithTooltip
|
|
ui.OptionsWithTextFormatting
|
|
orientation: ui.VizOrientation
|
|
// TODO this default is a guess based on common devenv values
|
|
stacking: ui.StackingMode | *"none"
|
|
showValue: ui.VisibilityMode
|
|
barWidth: number
|
|
groupWidth: number
|
|
} @cuetsy(kind="interface")
|
|
PanelFieldConfig: {
|
|
ui.AxisConfig
|
|
ui.HideableFieldConfig
|
|
lineWidth?: number
|
|
fillOpacity?: number
|
|
gradientMode?: ui.GraphGradientMode
|
|
} @cuetsy(kind="interface")
|
|
},
|
|
]
|
|
},
|
|
]
|
|
}
|