How does legend change the display position of a highcharts chart?

Source: Internet
Author: User

1. Place the legend on the right of the chart
1. Set the value of the marginright attribute of the chart:
Chart :{
Marginright: 120
}
2. Set the legend property value as follows:

Legend :{
Align: 'right', // horizontal position
Verticalalign: 'top', // vertical position
X: 0, // distance from X axis
Y: 100 // distance from Y axis
}

3 ,:

 

2. Place the legend in the upper left corner of the chart.
1. Set the properties of Legend
Legend :{
Align: 'left', // horizontal position
Verticalalign: 'top', // vertical position
X: 0, // distance from X axis
Y: 0 // distance from Y axis
}

2 ,:

3. Place the legend in the center of the chart
1. Set the legend attribute as follows:
Legend :{
Align: 'center', // horizontal position
Verticalalign: 'top', // vertical position
X: 0, // distance from X axis
Y: 20 // distance from Y axis
}
2. as follows:

4. Place the legend in the center below
1. Set the legend attribute as follows:
Legend :{
Align: 'center', // horizontal position
Verticalalign: 'bottom ', // vertical position
X: 0, // distance from X axis
Y: 0 // distance from Y axis
},
2. as follows:

Reference URL: http://www.stepday.com/topic? 446

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.