We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
详细代码如下,数据有25条,数据需要count从高到低展示 import React from "react"; import { G2, Chart, Interval, Axis, Tooltip, Coordinate, Label, Legend, View, Guide, Shape, Facet, Util, } from "bizcharts"; import DataSet from "@antv/data-set"; const MOCK_DATA = []; function BaseStrip({ data = MOCK_DATA, height = 120, keyName="country", keyVal = "population" }) { console.log('BaseStripBaseStrip',data); const label = { style: { textAlign: 'right', // 文本对齐方向,可取值为: start center end fill: '#474A52', // 文本的颜色 fontSize: 12, // 文本大小 fontWeight: 400, // 文本粗细 textBaseline: 'middle' // 文本基准线,可取 top middle bottom,默认为middle }, } return ( <Chart data={data} height={height} padding={[8, 60, 20, 150]} autoFit > <Interval position={${keyName}*${keyVal}} label={keyVal} /> ); } export default BaseStrip;
${keyName}*${keyVal}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
详细代码如下,数据有25条,数据需要count从高到低展示
import React from "react";
import {
G2,
Chart,
Interval,
Axis,
Tooltip,
Coordinate,
Label,
Legend,
View,
Guide,
Shape,
Facet,
Util,
} from "bizcharts";
import DataSet from "@antv/data-set";
const MOCK_DATA = [];
function BaseStrip({ data = MOCK_DATA, height = 120, keyName="country", keyVal = "population" }) {
console.log('BaseStripBaseStrip',data);
const label = {
style: {
textAlign: 'right', // 文本对齐方向,可取值为: start center end
fill: '#474A52', // 文本的颜色
fontSize: 12, // 文本大小
fontWeight: 400, // 文本粗细
textBaseline: 'middle' // 文本基准线,可取 top middle bottom,默认为middle
},
}
return (
<Chart
data={data}
height={height}
padding={[8, 60, 20, 150]}
autoFit
>
<Interval position={
${keyName}*${keyVal}
} label={keyVal} />);
}
export default BaseStrip;
The text was updated successfully, but these errors were encountered: