mirror of
https://github.com/danbulant/nollup-apexcharts-bug
synced 2026-05-24 12:35:30 +00:00
example data
This commit is contained in:
parent
73f8c00f95
commit
1b60aa7d84
1 changed files with 52 additions and 6 deletions
|
|
@ -1,10 +1,56 @@
|
||||||
<script>
|
<script>
|
||||||
import { metatags } from '@roxi/routify'
|
import { metatags } from "@roxi/routify";
|
||||||
import { chart } from "../chart";
|
import { chart } from "../chart";
|
||||||
metatags.title = 'My Routify app'
|
metatags.title = "My Routify app";
|
||||||
metatags.description = 'Description coming soon...'
|
metatags.description = "Description coming soon...";
|
||||||
|
|
||||||
var opts = {};
|
var opts = {
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
data: [21, 22, 10, 28, 16, 21, 13, 30],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
chart: {
|
||||||
|
height: 350,
|
||||||
|
type: "bar",
|
||||||
|
events: {
|
||||||
|
click: function (chart, w, e) {
|
||||||
|
// console.log(chart, w, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
colors: colors,
|
||||||
|
plotOptions: {
|
||||||
|
bar: {
|
||||||
|
columnWidth: "45%",
|
||||||
|
distributed: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dataLabels: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
legend: {
|
||||||
|
show: false,
|
||||||
|
},
|
||||||
|
xaxis: {
|
||||||
|
categories: [
|
||||||
|
["John", "Doe"],
|
||||||
|
["Joe", "Smith"],
|
||||||
|
["Jake", "Williams"],
|
||||||
|
"Amber",
|
||||||
|
["Peter", "Brown"],
|
||||||
|
["Mary", "Evans"],
|
||||||
|
["David", "Wilson"],
|
||||||
|
["Lily", "Roberts"],
|
||||||
|
],
|
||||||
|
labels: {
|
||||||
|
style: {
|
||||||
|
colors: colors,
|
||||||
|
fontSize: "12px",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div use:chart={opts} />
|
<div use:chart={opts} />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue