Legend of Chart in Extjs.
Legend.
What exactly does Extjs Chart represent? Take a look at this figure:
The red area on the right is Legend.
In the definition of Extjs Chart, you can configure the configuration value (configs) of
The legend of the chart in ExtJS.Legend, translated by means of a legend.What does it mean in ExtJS's chart? Look directly at this picture:The red box on the right is the legend.In the definition of the ExtJS Chart, you can set the location and style of the legend display by
Bar chart for fine tuning
>counts
>barplot (counts,main= "Treatment outcome", horiz=true,cex.names = 1,names.arg = C ("No", "some", "Marked"), Xlim=c ( 0,50), Col=c ("Red", "green", "yellow"), Legend=c ("No", "some", "Marked"), args.legend=c (25,28,X.INTERSP = 0.5,Y.INTERSP = 0.7,text.width=6,cex=1))
Added the legend, and shows how to adjust the length of th
In the previous article, we mentioned how to use keyword to set the Label display format on the pie chart, for example:
Chart1.series [0]. Label = "# Valy [# percent]";
At this time, the label is displayed as the size of the Y axis value, and the percentage is displayed in the brackets that follow it.
In practice, I found that, without formatting, the corresponding name of the X axis is displayed by default in the
1. Place the legend on the right of the chart1. 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 positionVerticalalign: 'top', // vertical positionX: 0, // distance from X axisY: 100 // distance from Y axis}
3 ,:
2. Place the
JQuery plug-in HighCharts to draw a 2D pie chart with Legend effect example [with demo source code download], jqueryhighcharts
This article describes how to use the jQuery plug-in HighCharts to create a 2D pie chart with Legend. We will share this with you for your reference. The details are as follows:
1. instance cod
, how to do? For more information please go to other blogs, where more detailed instructions are available .Pandas import time data for format conversion Draw multiple graphs on one canvas and add legends1 fromMatplotlib.font_managerImportfontproperties2Font = fontproperties (fname=r"C:\windows\fonts\STKAITI. TTF", size=14)3colors = ["Red","Green"]#the color used to specify the line4Labels = ["Jingdong","12306"]#used to specify the legend5Plt.plot (range (0, D), C, C=colors[0], label=Labels[0]
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.