@@ -20,6 +20,7 @@ import {
2020 Point ,
2121 VictoryLabel ,
2222 VictoryAccessibleGroup ,
23+ VictoryTheme ,
2324} from "victory-core" ;
2425import {
2526 accessibilityBarData ,
@@ -86,9 +87,8 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
8687 data-testid = "bar-accessibility-chart"
8788 >
8889 < h3 style = { chartHeadingStyle } > Bar chart</ h3 >
89- < VictoryChart domainPadding = { { x : 40 , y : 40 } } >
90+ < VictoryChart theme = { VictoryTheme . clean } domainPadding = { { x : 40 , y : 40 } } >
9091 < VictoryBar
91- style = { { data : { fill : "#c43a31" } } }
9292 data = { accessibilityBarData }
9393 dataComponent = {
9494 < Bar
@@ -103,7 +103,7 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
103103 { /** BOXPLOT */ }
104104 < div style = { chartContainerStyle } >
105105 < h3 style = { chartHeadingStyle } > BoxPlot</ h3 >
106- < VictoryChart domainPadding = { { x : 40 , y : 40 } } >
106+ < VictoryChart theme = { VictoryTheme . clean } domainPadding = { { x : 40 , y : 40 } } >
107107 < VictoryBoxPlot
108108 minLabels
109109 maxLabels
@@ -163,7 +163,7 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
163163 { /** AREA */ }
164164 < div style = { chartContainerStyle } >
165165 < h3 style = { chartHeadingStyle } > Area</ h3 >
166- < VictoryChart >
166+ < VictoryChart theme = { VictoryTheme . clean } >
167167 < VictoryStack
168168 groupComponent = {
169169 < VictoryAccessibleGroup
@@ -175,8 +175,8 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
175175 }
176176 >
177177 < VictoryArea
178+ style = { { data : { fill : "#D0F0FD" } } }
178179 data = { accessibilityAreaData . a }
179- style = { { data : { fill : "#c43a31" } } }
180180 dataComponent = {
181181 < Area
182182 ariaLabel = { ( { data } ) =>
@@ -186,8 +186,8 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
186186 />
187187 }
188188 />
189- < VictoryArea
190- style = { { data : { fill : "#c43a31" , opacity : 0.9 } } }
189+ < VictoryArea
190+ style = { { data : { fill : "#77D1F3" } } }
191191 data = { accessibilityAreaData . b }
192192 dataComponent = {
193193 < Area
@@ -199,20 +199,20 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
199199 }
200200 />
201201 < VictoryArea
202+ style = { { data : { fill : "#18BFFF" } } }
202203 data = { accessibilityAreaData . c }
203- style = { { data : { fill : "#c43a31" , opacity : 0.8 } } }
204204 dataComponent = {
205- < Area
205+ < Area
206206 ariaLabel = { ( { data } ) =>
207207 `area chart stack ${ data ?. [ 0 ] . _stack } `
208- }
209- tabIndex = { 20.2 }
208+ }
209+ tabIndex = { 20.2 }
210210 />
211211 }
212212 />
213213 < VictoryArea
214+ style = { { data : { fill : "#0B76B7" } } }
214215 data = { accessibilityAreaData . d }
215- style = { { data : { fill : "#c43a31" , opacity : 0.6 } } }
216216 dataComponent = {
217217 < Area
218218 ariaLabel = { ( { data } ) =>
@@ -229,7 +229,7 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
229229 { /** LINE */ }
230230 < div style = { chartContainerStyle } >
231231 < h3 style = { chartHeadingStyle } > Line</ h3 >
232- < VictoryChart domain = { { x : [ 0 , 6 ] , y : [ 1 , 7 ] } } >
232+ < VictoryChart theme = { VictoryTheme . clean } domain = { { x : [ 0 , 6 ] , y : [ 1 , 7 ] } } >
233233 < VictoryLine
234234 data = { accessibilityLineData }
235235 labels = { ( { datum } ) => datum . y }
@@ -261,6 +261,7 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
261261 < div style = { chartContainerStyle } >
262262 < h3 style = { chartHeadingStyle } > Pie</ h3 >
263263 < VictoryPie
264+ theme = { VictoryTheme . clean }
264265 style = { { labels : { fill : "white" , fontSize : 10 } } }
265266 labelRadius = { ( { datum } ) => datum . radius - 12 }
266267 width = { 400 }
@@ -279,9 +280,8 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
279280 { /** SCATTER */ }
280281 < div style = { chartContainerStyle } >
281282 < h3 style = { chartHeadingStyle } > Scatter</ h3 >
282- < VictoryChart domain = { { x : [ 0 , 6 ] , y : [ 0 , 8 ] } } >
283+ < VictoryChart theme = { VictoryTheme . clean } domain = { { x : [ 0 , 6 ] , y : [ 0 , 8 ] } } >
283284 < VictoryScatter
284- style = { { data : { fill : "#c43a31" } } }
285285 size = { 7 }
286286 data = { accessibilityScatterData }
287287 dataComponent = {
@@ -299,9 +299,8 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
299299 { /** VORONOI */ }
300300 < div style = { chartContainerStyle } >
301301 < h3 style = { chartHeadingStyle } > Voronoi</ h3 >
302- < VictoryChart >
302+ < VictoryChart theme = { VictoryTheme . clean } >
303303 < VictoryVoronoi
304- style = { { data : { stroke : "#c43a31" , strokeWidth : 2 } } }
305304 data = { accessibilityVoronoiData }
306305 dataComponent = {
307306 < Voronoi
@@ -318,7 +317,7 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
318317 { /** CANDLESTICK */ }
319318 < div style = { chartContainerStyle } >
320319 < h3 style = { chartHeadingStyle } > Candlestick</ h3 >
321- < VictoryChart domainPadding = { { x : 25 } } >
320+ < VictoryChart theme = { VictoryTheme . clean } domainPadding = { { x : 25 } } >
322321 < VictoryCandlestick
323322 data = { accessibilityCandlestickData }
324323 dataComponent = {
@@ -336,7 +335,7 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
336335 { /** ERRORBAR */ }
337336 < div style = { chartContainerStyle } >
338337 < h3 style = { chartHeadingStyle } > ErrorBar</ h3 >
339- < VictoryChart domainPadding = { 15 } >
338+ < VictoryChart theme = { VictoryTheme . clean } domainPadding = { 15 } >
340339 < VictoryErrorBar
341340 data = { accessibilityErrorBarData }
342341 errorX = { ( datum ) => datum . error * datum . x }
@@ -356,8 +355,9 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
356355 { /** ACCESSIBLE GROUP */ }
357356 < div style = { chartContainerStyle } >
358357 < h3 style = { chartHeadingStyle } > Accessible Group</ h3 >
359- < VictoryChart domainPadding = { { x : 40 } } >
358+ < VictoryChart theme = { VictoryTheme . clean } domainPadding = { { x : 40 } } >
360359 < VictoryGroup
360+ theme = { VictoryTheme . clean }
361361 offset = { 20 }
362362 groupComponent = {
363363 < VictoryAccessibleGroup
@@ -369,7 +369,6 @@ export default class VictoryAccessibilityDemo extends React.Component<any> {
369369 < VictoryBar horizontal data = { accessibilityGroupData . a } />
370370 < VictoryBar
371371 horizontal
372- style = { { data : { fill : "#c43a31" , opacity : 0.9 } } }
373372 data = { accessibilityGroupData . b }
374373 groupComponent = {
375374 < VictoryAccessibleGroup
0 commit comments