-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added @prop() for: - options - type - width - height - series
- Loading branch information
1 parent
4ba3e28
commit 2a13fe9
Showing
6 changed files
with
148 additions
and
57 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 { ApexOptions } from "apexcharts"; | ||
|
||
export type ApexChartType = ApexChart['type']; | ||
export type ApexChartWidth = ApexChart['width']; | ||
export type ApexChartHeight = ApexChart['height']; | ||
export type ApexOptionsSeries = ApexOptions['series']; |
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 |
---|---|---|
@@ -1,31 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html dir="ltr" lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> | ||
<title>Stencil Component Starter</title> | ||
<script src="/build/apex.js"></script> | ||
|
||
</head> | ||
<body> | ||
|
||
<apex-chart></apex-chart> | ||
<script> | ||
const chart = document.querySelector('apex-chart'); | ||
chart.options = { | ||
chart: { | ||
type: 'line' | ||
}, | ||
series: [{ | ||
name: 'sales', | ||
data: [30,40,35,50,49,60,70,91,125] | ||
}], | ||
xaxis: { | ||
categories: [1991,1992,1993,1994,1995,1996,1997, 1998,1999] | ||
} | ||
}; | ||
</script> | ||
|
||
<!-- <custom-clock></custom-clock> --> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" /> | ||
<title>Stencil Component Starter</title> | ||
<script src="/build/apex.js"></script> | ||
</head> | ||
<body> | ||
<apex-chart type="bar" width="50%"></apex-chart> | ||
<script> | ||
const chart = document.querySelector('apex-chart'); | ||
chart.options = { | ||
series: [ | ||
{ | ||
name: 'sales', | ||
data: [30, 40, 35, 50, 49, 60, 70, 91, 125] | ||
} | ||
], | ||
xaxis: { | ||
categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999] | ||
} | ||
}; | ||
</script> | ||
</body> | ||
</html> |