Skip to content

Commit 8e5f44f

Browse files
Merge branch 'main' of https://github.com/Digvijayrao-KF/apexcharts.js into stroke-color-function
2 parents f9d1967 + 52e3b0b commit 8e5f44f

File tree

8 files changed

+614
-583
lines changed

8 files changed

+614
-583
lines changed

samples/react/mixed/line-column-area-stacked-grouped.html

Lines changed: 109 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -147,133 +147,135 @@
147147
}],
148148
options: {
149149
chart: {
150-
height: 350,
151-
type: 'line',
152-
stacked: true,
153-
stackOnlyBar: false,
154-
dropShadow: {
155-
enabled: true,
156-
enabledOnSeries: [0,1,2,3,4,5,10]
157-
},
150+
height: 350,
151+
type: 'line',
152+
stacked: true,
153+
stackOnlyBar: false,
154+
dropShadow: {
155+
enabled: true,
156+
enabledOnSeries: [0,1,2,3,4,5,6,7,10]
157+
},
158158

159+
},
160+
plotOptions: {
161+
bar: {
162+
columnWidth: '70%'
163+
}
164+
},
165+
dataLabels: {
166+
enabled: true,
167+
enabledOnSeries: [10]
168+
},
169+
xaxis: {
170+
categories: [2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016]
171+
},
172+
yaxis: [
173+
{
174+
seriesName: ['Series A','Series B','Series C',
175+
'Series D','Series E','Series F'],
176+
axisTicks: {
177+
show: true,
178+
color: '#008FFB'
159179
},
160-
plotOptions: {
161-
bar: {
162-
columnWidth: '40%'
180+
axisBorder: {
181+
show: true,
182+
color: '#008FFB'
183+
},
184+
title: {
185+
text: "Columns (Stacked/Grouped)",
186+
style: {
187+
color: '#008FFB'
163188
}
164189
},
165-
dataLabels: {
166-
enabled: true,
167-
enabledOnSeries: [10]
190+
labels: {
191+
style: {
192+
colors: ['#008FFB']
193+
}
194+
}
195+
},{
196+
opposite: true,
197+
seriesName: ['Series X', 'Series Y'],
198+
axisTicks: {
199+
show: true,
200+
color: '#78909C'
168201
},
169-
xaxis: {
170-
categories: [2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016]
202+
axisBorder: {
203+
show: true,
204+
color: '#78909C'
171205
},
172-
yaxis: [
173-
{
174-
seriesName: ['Series A','Series B','Series C',
175-
'Series D','Series E','Series F'],
176-
axisTicks: {
177-
show: true,
178-
color: '#008FFB'
179-
},
180-
axisBorder: {
181-
show: true,
182-
color: '#008FFB'
183-
},
184-
title: {
185-
text: "Columns (Stacked/Grouped)",
186-
style: {
187-
color: '#008FFB'
188-
}
189-
},
190-
labels: {
191-
style: {
192-
colors: ['#008FFB']
193-
}
194-
}
195-
},{
196-
opposite: true,
197-
seriesName: ['Series X', 'Series Y'],
198-
axisTicks: {
199-
show: true,
206+
title: {
207+
text: "Columns (Stacked)",
208+
style: {
200209
color: '#78909C'
201-
},
202-
axisBorder: {
203-
show: true,
204-
color: '#78909C'
205-
},
206-
title: {
207-
text: "Columns (Stacked)",
208-
style: {
209-
color: '#78909C'
210-
}
211210
}
212-
},{
213-
seriesName: ['Series 1','Series 2'],
214-
labels: {
215-
style: {
216-
colors: ['#88AA88']
217-
}
218-
},
219-
axisTicks: {
220-
show: true,
221-
color: '#88AA88'
222-
},
223-
axisBorder: {
224-
show: true,
211+
}
212+
},{
213+
seriesName: ['Series 1','Series 2'],
214+
labels: {
215+
style: {
216+
colors: ['#88AA88']
217+
}
218+
},
219+
axisTicks: {
220+
show: true,
221+
color: '#88AA88'
222+
},
223+
axisBorder: {
224+
show: true,
225+
color: '#88AA88'
226+
},
227+
title: {
228+
text: "Areas (stacked)",
229+
style: {
225230
color: '#88AA88'
226-
},
227-
title: {
228-
text: "Areas (stacked)",
229-
style: {
230-
color: '#88AA88'
231-
}
232231
}
233-
},{
234-
opposite: true,
235-
seriesName: 'Series 3',
236-
labels: {
237-
style: {
238-
colors: ['#78909C']
239-
}
240-
},
241-
axisTicks: {
242-
show: true,
243-
color: '#78909C'
244-
},
245-
axisBorder: {
246-
show: true,
232+
}
233+
},{
234+
opposite: true,
235+
seriesName: 'Series 3',
236+
labels: {
237+
style: {
238+
colors: ['#78909C']
239+
}
240+
},
241+
axisTicks: {
242+
show: true,
243+
color: '#78909C'
244+
},
245+
axisBorder: {
246+
show: true,
247+
color: '#78909C'
248+
},
249+
title: {
250+
text: "Line",
251+
style: {
247252
color: '#78909C'
248-
},
249-
title: {
250-
text: "Line",
251-
style: {
252-
color: '#78909C'
253-
}
254253
}
255254
}
255+
}
256256
],
257257
fill: {
258-
type: 'gradient',
259-
gradient: {
260-
shade: 'light'
261-
}
258+
type: 'gradient',
259+
gradient: {
260+
shade: 'light'
261+
}
262262
},
263263
stroke: {
264-
width: [0,0,0,0,0,0,0,0,1,1,3],
265-
colors: ['#fff','#fff','#fff','#fff','#fff','#fff',
266-
'#DDDDDD','#888888',
267-
'#fff','#fff',
268-
'#222222']
264+
width: [4,4,4,4,4,4,4,4,1,1,3],
265+
colors: ['rgba(0,0,0,0)','rgba(0,0,0,0)','rgba(0,0,0,0)',
266+
'rgba(0,0,0,0)','rgba(0,0,0,0)','rgba(0,0,0,0)',
267+
'rgba(0,0,0,0)','rgba(0,0,0,0)',
268+
'#fff','#fff',
269+
'#222222'],
270+
curve: ['','','','','','','','','stepline','stepline','straight']
269271
},
270272
colors: ['#00D8B6','#008FFB','#FEB019',
271-
'#FF4560','#775DD0',"#95C11F",
272-
'#DDDDDD','#888888',
273-
'#88AA88','#DDEEDD',
274-
'#AAAAAA'],
273+
'#FF4560','#775DD0',"#95C11F",
274+
'#DDDDDD','#888888',
275+
'#88AA88','#DDEEDD',
276+
'#AAAAAA'],
275277
tooltip: {
276-
shared: true
278+
shared: true
277279
}
278280
},
279281

0 commit comments

Comments
 (0)