Skip to content

Commit 40feca4

Browse files
authored
fix: polar area charts not rendering (#1)
1 parent 17283fd commit 40feca4

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function chart(
6060
{},
6161
): string {
6262
Object.assign(options, {
63-
animation: undefined,
63+
animation: false,
6464
events: [],
6565
responsive: false,
6666
});

examples/routes/index.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,29 @@ export default function Home() {
8282
class="mx-auto my-4 h-96"
8383
alt="an example chart provided as an image"
8484
/>
85+
<h1 class="text(xl gray-600) font-medium mt-4">
86+
Polar Area Chart - Inline
87+
</h1>
88+
<Chart
89+
type="polarArea"
90+
options={{ devicePixelRatio: 1 }}
91+
data={{
92+
labels: ["Red", "Orange", "Yellow", "Green", "Blue"],
93+
datasets: [
94+
{
95+
label: "Dataset 1",
96+
data: numbers(pieCfg),
97+
backgroundColor: [
98+
ChartColors.Red,
99+
ChartColors.Orange,
100+
ChartColors.Yellow,
101+
ChartColors.Green,
102+
ChartColors.Blue,
103+
],
104+
},
105+
],
106+
}}
107+
/>
85108
</div>
86109
</>
87110
);

0 commit comments

Comments
 (0)