-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new chart types and dashboard component interfaces
- Loading branch information
Showing
6 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type ChartType = "line" | "bar"; // | "pie" | "doughnut" | "radar" | "polarArea" | "bubble" | "scatter"; | ||
|
||
export default ChartType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default interface ComponentPosition { | ||
topInDashboardUnits: number; | ||
leftInDashboardUnits: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default interface ComponentSize { | ||
widthInDashboardUnits: number; // this is in dashboard units | ||
heightInDashboardUnits: number; // this is in dashboard units | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ObjectID from "../../ObjectID"; | ||
|
||
export default interface BaseComponent { | ||
type: string; | ||
componentId: ObjectID; | ||
} |
9 changes: 9 additions & 0 deletions
9
Common/Types/Dashboard/DashboardComponents/ChartDashboardComponent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import ObjectID from "../../ObjectID"; | ||
import ChartType from "../Chart/ChartType"; | ||
import BaseComponent from "./BaseComponent"; | ||
|
||
export default interface ChartDashboardComponent extends BaseComponent { | ||
type: "chart"; | ||
componentId: ObjectID; | ||
chartType: ChartType; | ||
} |
3 changes: 3 additions & 0 deletions
3
Common/Types/Dashboard/DashboardComponents/ValueDashboardComponent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import BaseComponent from "./BaseComponent"; | ||
|
||
export interface ValueDashboardComponent extends BaseComponent {} |