opts Object
opts.canvasId String Required Applet Canvas-id
opts.width Number required canvas width in px
opts.height Number required canvas height in px
opts.background String Canvas Background color (if the page background color is not white, set as the background color of the page, default #ffffff )
opts.enableScroll Boolean whether to open the chart can drag scroll default false support line , area chart type (need to match binding scrollStart , scroll scrollEnd method)
opts.title Object (only for ring chart)
opts.title.name String Header Content
opts.title.fontSize Number Title font size (optional, px)
opts.title.color String caption Color (optional)
opts.title.offsetX Number title transverse position offset, unit px, default 0
opts.subtitle Object (only for ring chart)
opts.subtitle.name String subtitle Content
opts.subtitle.offsetX Number subtitle transverse position offset, unit px, default 0
opts.subtitle.fontSize Number subtitle font size (optional, px)
opts.subtitle.color String subtitle color (optional)
opts.animation Whether Boolean default true animation is displayed
opts.legend Boolen default true shows the types of labels below the chart
opts.type String Required chart type, optional value,,,,, pie line column area ring radar
opts.categories Array Required (pie chart, doughnut chart not required) data category categories
opts.dataLabel Boolean default true whether to display data content values in the chart
opts.dataPointShape Boolean default true whether to display the data point graphic identification in the chart
opts.disablePieStroke Boolean default false does not draw white split lines for each chunk of a pie chart (doughnut chart)
opts.xAxis Object X-Axis configuration
opts.xAxis.gridColor String such as #7cb5ec default #cccccc x axis grid color
opts.xAxis.fontColor String such as #7cb5ec default #666666 x axis data point color
opts.xAxis.disableGrid Boolean default false does not draw the x-axis grid
opts.xAxis.type String Optional value calibration(刻度) defaults to include style
opts.yAxis Object Y-Axis configuration
opts.yAxis.format Function Custom y-axis copy display
opts.yAxis.min Number y-axis start value
opts.yAxis.max Number y-Axis termination value
opts.yAxis.title String Y-Axis title
opts.yAxis.gridColor String such as #7cb5ec default #cccccc y-axis grid color
opts.yAxis.fontColor String such as #7cb5ec default #666666 y-axis data point color
opts.yAxis.titleFontColor String For example #7cb5ec default #333333 y axis title color
opts.yAxis.disabled Boolean default false does not draw the y-axis
opts.extra Object other non-generic configuration items
opts.extra.ringWidth Number ringChart ring width, in units ofpx
opts.extra.lineStyle String (valid only line for area chart) optional value: curve curve, straight line (default)
opts.extra.column Object Histogram related configuration
opts.extra.column.width The graph width of each item in the number histogram, in units ofpx
opts.extra.legendTextColor String such as #7cb5ec default #cccccc legend copy Color
opts.extra.radar Object Radar Diagram Related configuration
opts.extra.radar.max Number, default is series data the maximum, data interval maximum, used to adjust the scale of the data display
opts.extra.radar.labelColor String, default to the #666666 color of each identity copy
opts.extra.radar.gridColor String, default to #cccccc , Radar grid color
opts.extra.pie Object pie chart, doughnut-related configuration
opts.extra.pie.offsetAngle Number, the default is 0 , the starting angle offset degrees, clockwise direction, the starting point is 3 o'clock position (for example, to set the starting point to 12 o'clock position, that is, the counter-clockwise offset 90 degrees, 90 can be passed)
opts.series Array Required Data List
Data list per item structure definition dataItem Object
dataItem.data Array Required (pie chart, doughnut chart number) data if a null breakpoint appears at the time of the incoming chart
dataItem.color String For example #7cb5ec does not pass in uses the system default color scheme
dataItem.name String Data Name
dateItem.format Function Custom Display data content
|