diff --git a/site/examples/statistics/bar/demo/bar.js b/site/examples/statistics/bar/demo/bar.js index 263584882..9b7776e07 100644 --- a/site/examples/statistics/bar/demo/bar.js +++ b/site/examples/statistics/bar/demo/bar.js @@ -17,7 +17,7 @@ const DemoBar = () => { text: 'frequency', formatter: '.1%', style: { - textAnchor: (d) => (+d.frequency > 0.008 ? 'right' : 'start'), + textAlign: (d) => (+d.frequency > 0.008 ? 'right' : 'start'), fill: (d) => (+d.frequency > 0.008 ? '#fff' : '#000'), dx: (d) => (+d.frequency > 0.008 ? -5 : 5), }, diff --git a/site/examples/statistics/dual-axes/demo/custom-dual-line.js b/site/examples/statistics/dual-axes/demo/custom-dual-line.js index 431e98b54..487aa5d65 100644 --- a/site/examples/statistics/dual-axes/demo/custom-dual-line.js +++ b/site/examples/statistics/dual-axes/demo/custom-dual-line.js @@ -31,7 +31,7 @@ const DemoDualAxes = () => { text: (datum) => `${datum.value}个`, style: { dy: -10, - textAnchor: 'middle', + textAlign: 'middle', }, }, axis: { @@ -54,7 +54,7 @@ const DemoDualAxes = () => { text: (datum) => `${datum.count}个`, style: { dy: -10, - textAnchor: 'middle', + textAlign: 'middle', }, }, axis: { diff --git a/site/examples/statistics/scatter/demo/point-label.js b/site/examples/statistics/scatter/demo/point-label.js index 23dd89726..a9900dda0 100644 --- a/site/examples/statistics/scatter/demo/point-label.js +++ b/site/examples/statistics/scatter/demo/point-label.js @@ -19,7 +19,7 @@ const DemoScatter = () => { text: 'name', style: { stroke: '#fff', - textAnchor: 'start', + textAlign: 'start', textBaseline: 'middle', dx: 10, position: 'left',