Code Monkey home page Code Monkey logo

Comments (3)

chuyinweilai avatar chuyinweilai commented on May 16, 2024

There is another problem about
The Y-axis can't show the border like this:
image
This is the same code.

from bizcharts.

weepy3641 avatar weepy3641 commented on May 16, 2024

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.

chuyinweilai avatar chuyinweilai commented on May 16, 2024

@weepy3641 I can't see your example……
image
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', // 标题的位置,**新增**
	 }} 
 />

image

Thanks for your help!

from bizcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.