Skip to content

Commit af68c05

Browse files
committed
update funnel and pyramid samples
1 parent 1993ad3 commit af68c05

24 files changed

Lines changed: 62 additions & 870 deletions

samples/react/funnel/funnel-first-class.html

Lines changed: 0 additions & 125 deletions
This file was deleted.

samples/react/funnel/funnel.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<div id="app"></div>
4545

4646
<div id="html">&lt;div id=&quot;chart&quot;&gt;
47-
&lt;ReactApexChart options={state.options} series={state.series} type=&quot;bar&quot; height={350} /&gt;
47+
&lt;ReactApexChart options={state.options} series={state.series} type=&quot;funnel&quot; height={350} /&gt;
4848
&lt;/div&gt;</div>
4949

5050
<script type="text/babel">
@@ -59,7 +59,7 @@
5959
],
6060
options: {
6161
chart: {
62-
type: 'bar',
62+
type: 'funnel',
6363
height: 350,
6464
dropShadow: {
6565
enabled: true,
@@ -68,9 +68,7 @@
6868
plotOptions: {
6969
bar: {
7070
borderRadius: 0,
71-
horizontal: true,
7271
barHeight: '80%',
73-
isFunnel: true,
7472
},
7573
},
7674
dataLabels: {
@@ -111,7 +109,7 @@
111109
return (
112110
<div>
113111
<div id="chart">
114-
<ReactApexChart options={state.options} series={state.series} type="bar" height={350} />
112+
<ReactApexChart options={state.options} series={state.series} type="funnel" height={350} />
115113
</div>
116114
<div id="html-dist"></div>
117115
</div>

samples/react/funnel/pyramid-first-class.html

Lines changed: 0 additions & 127 deletions
This file was deleted.

samples/react/funnel/pyramid.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7-
<title>Funnel Chart</title>
7+
<title>Pyramid Chart (chart.type: 'pyramid')</title>
88

99
<link href="../../assets/styles.css" rel="stylesheet" />
1010

@@ -44,7 +44,7 @@
4444
<div id="app"></div>
4545

4646
<div id="html">&lt;div id=&quot;chart&quot;&gt;
47-
&lt;ReactApexChart options={state.options} series={state.series} type=&quot;bar&quot; height={350} /&gt;
47+
&lt;ReactApexChart options={state.options} series={state.series} type=&quot;pyramid&quot; height={350} /&gt;
4848
&lt;/div&gt;</div>
4949

5050
<script type="text/babel">
@@ -59,7 +59,7 @@
5959
],
6060
options: {
6161
chart: {
62-
type: 'bar',
62+
type: 'pyramid',
6363
height: 350,
6464
dropShadow: {
6565
enabled: true,
@@ -68,10 +68,8 @@
6868
plotOptions: {
6969
bar: {
7070
borderRadius: 0,
71-
horizontal: true,
7271
distributed: true,
7372
barHeight: '80%',
74-
isFunnel: true,
7573
},
7674
},
7775
colors: [
@@ -87,14 +85,14 @@
8785
dataLabels: {
8886
enabled: true,
8987
formatter: function (val, opt) {
90-
return opt.w.globals.labels[opt.dataPointIndex]
88+
return opt.w.globals.labels[opt.dataPointIndex]
9189
},
9290
dropShadow: {
9391
enabled: true,
9492
},
9593
},
9694
title: {
97-
text: 'Pyramid Chart',
95+
text: 'Food Pyramid',
9896
align: 'middle',
9997
},
10098
xaxis: {
@@ -113,7 +111,7 @@
113111
return (
114112
<div>
115113
<div id="chart">
116-
<ReactApexChart options={state.options} series={state.series} type="bar" height={350} />
114+
<ReactApexChart options={state.options} series={state.series} type="pyramid" height={350} />
117115
</div>
118116
<div id="html-dist"></div>
119117
</div>

samples/react/funnel/trapezoid-funnel-tapered.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
lastShape: 'taper',
6969
},
7070
bar: {
71+
barHeight: '90%',
7172
distributed: true,
7273
},
7374
},

samples/react/funnel/trapezoid-funnel.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,17 @@
7171
lastShape: 'flat',
7272
},
7373
bar: {
74+
barHeight: '90%',
7475
distributed: true,
7576
},
7677
},
7778
colors: [
78-
'#3B82F6',
79-
'#6366F1',
80-
'#8B5CF6',
81-
'#A855F7',
82-
'#D946EF',
83-
'#EC4899',
79+
'#3b82f6',
80+
'#00a3f4',
81+
'#00b7b8',
82+
'#00c161',
83+
'#93bd00',
84+
'#ffa600'
8485
],
8586
dataLabels: {
8687
enabled: true,

0 commit comments

Comments
 (0)