This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#471): add chart to poll slide with data
- Loading branch information
1 parent
cbb582e
commit c82d6ba
Showing
10 changed files
with
509 additions
and
34 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
36 changes: 36 additions & 0 deletions
36
...omponents/charts/src/components/charts/deckdeckgo-bar-chart/deckdeckgo-bar-chart-data.tsx
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,36 @@ | ||
// A bar | ||
export interface DeckdeckgoBarChartDataValue { | ||
// The key of a bar, use for the style | ||
key: number | string; | ||
// A title for the bar | ||
title: string; | ||
// Its value | ||
value: number; | ||
} | ||
|
||
// A chart | ||
export interface DeckdeckgoBarChartData { | ||
// The chart label | ||
label: string | Date | number; | ||
// 1 or multiple bars | ||
values: DeckdeckgoBarChartDataValue[]; | ||
} | ||
|
||
// Example | ||
// [{ | ||
// "label": "01.01.2018", | ||
// "values": [{"key": "1", "title": "Salami", "value": 5, "randomFillColor": "49c001"}, { | ||
// "key": "2", | ||
// "title": "Pastrami", | ||
// "value": 0, | ||
// "randomFillColor": "f398d0" | ||
// }, {"key": "3", "title": "Prosciutto", "value": 10, "randomFillColor": "4a5dfd"}] | ||
// }, { | ||
// "label": "01.03.2018", | ||
// "values": [{"key": "1", "title": "Salami", "value": 10, "randomFillColor": "49c001"}, { | ||
// "key": "2", | ||
// "title": "Pastrami", | ||
// "value": 6, | ||
// "randomFillColor": "f398d0" | ||
// }, {"key": "3", "title": "Prosciutto", "value": 12, "randomFillColor": "4a5dfd"}] | ||
// }] |
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
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
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
Oops, something went wrong.