Comments (3)
There is another problem about
The Y-axis can't show the border like this:
This is the same code.
from bizcharts.
Axis' title is hidden default ,alias is just give a field data an alias name ,do not mean axis title show。
you should add title property in Axis component. title={{}}
like this:
that means the month Axis 's title should be showed.
thanks for your issue;
we will adjust axis title property's value and doc in the next [email protected] version.
like this:
or
from bizcharts.
@weepy3641 I can't see your example……
But I see what you means and understand the API of Axis.title:
<Axis name="temperature" label={{formatter: val => `${val}°C`}}
title={{
autoRotate: true, // 是否需要自动旋转,默认为 true
offset: 40, // 设置标题 title 距离坐标轴线的距离
textStyle: {
fontSize: '12',
textAlign: 'center',
fill: '#999',
fontWeight: 'bold',
},
position: 'center', // 标题的位置,**新增**
}}
/>
Thanks for your help!
from bizcharts.
Related Issues (20)
- 设置forceFit后canvas宽度为1px
- Tooltip marker配置类型不准确
- Tooltip报错
- Tooltip报错
- legend
- react18 严格模式下, 切换 图表类型 不渲染 HOT 1
- 带有label的条形图(BizCharts@4)数据紊乱,刷新会随机出现以下2种情况,label对应的会乱
- Changing Legend onChange does not update component (temp fix found) HOT 1
- onAnnotationClick在Annotation.Html下不生效 HOT 1
- The above error occurred in the <Chart3> component: HOT 1
- English documentation
- [Feature Request]气泡散点图支持双缩略轴
- 设置了父级元素的宽高,并且把autoFit设置为true,再设置图表的宽高还是有效 HOT 1
- DonutChart的onRingClick事件该如何触发
- react 兼容版本能提升至 17.+ 吗?做个多版本兼容行吗?
- 时间类型的x轴,刻度显示的值错误
- Interval组件动态修改adjust属性视图不更新
- v4版本的Legend如何实现基于html的自定义
- Issue with Chart Visualization in React/Next.js Project Using StrictMode HOT 1
- @antv/g2 已经发布了新的大版本v5,请问是否有支持的计划?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bizcharts.