2020-11-03 17:14:57 +01:00
|
|
|
<script>
|
|
|
|
import { chart } from "svelte-apexcharts"
|
|
|
|
|
|
|
|
export let options
|
|
|
|
</script>
|
|
|
|
|
2020-11-04 13:43:56 +01:00
|
|
|
{#if options}
|
|
|
|
<div use:chart={options} />
|
2020-11-04 16:43:43 +01:00
|
|
|
{:else if options === false}
|
2020-11-04 13:43:56 +01:00
|
|
|
<div>Invalid chart options</div>
|
|
|
|
{/if}
|
2020-11-03 17:14:57 +01:00
|
|
|
|
|
|
|
<style>
|
|
|
|
div :global(.apexcharts-legend-series) {
|
|
|
|
display: flex !important;
|
|
|
|
text-transform: capitalize;
|
|
|
|
}
|
|
|
|
</style>
|