Skip to content

Commit

Permalink
Update TS example since enum values names changed
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Oct 17, 2023
1 parent 877422d commit 5d9bdbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/builder/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const timeseriesPanel = new PanelBuilder()
.min(0)
.max(200)
.lineWidth(5)
.drawStyle(GraphDrawStyle.Bars)
.tooltip(new VizTooltipOptionsBuilder().mode(TooltipDisplayMode.Single));
.drawStyle(GraphDrawStyle.GraphDrawStyleBars)
.tooltip(new VizTooltipOptionsBuilder().mode(TooltipDisplayMode.TooltipDisplayModeSingle));

const overviewRow = new RowPanelBuilder("Overview");

Expand All @@ -24,7 +24,7 @@ const builder = new dashboardBuilder("Some title")
.time({from: "now-3h", to: "now"})
.refresh("1m")
.timezone("utc")
.tooltip(DashboardCursorSync.Crosshair)
.tooltip(DashboardCursorSync.DashboardCursorSyncCrosshair)
.tags(["generated", "from", "cue"])
.rows([
overviewRow.build(),
Expand All @@ -35,7 +35,7 @@ const builder = new dashboardBuilder("Some title")
// TODO: this is painful.
title: "Some link",
url: "http://google.com",
type: DashboardLinkType.Link,
type: DashboardLinkType.DashboardLinkTypeLink,
tags: [],
icon: "cloud",
tooltip: "",
Expand Down

0 comments on commit 5d9bdbb

Please sign in to comment.