A Charts component for displaying a graphic representation, as by curves, of a dependent variable, as temperature, price, etc.;
| Property | Description | Type | Default |
|---|---|---|---|
title | Card title | ReactNode|string | - |
action | Card operation | ReactNode | - |
total | Total amount of data | ReactNode | number | function | - |
footer | Bottom of card | ReactNode | - |
contentHeight | Content area height | number | - |
avatar | Right icon | React.ReactNode | - |
| Property | Description | Type | Default |
|---|---|---|---|
color | Chart color | string | #3B4150 |
height | Chart height | number | - |
data | data | array<{x, y}> | - |
| Property | Description | Type | Default |
|---|---|---|---|
color | Chart color | string | #FFE9E6 |
borderColor | Chart edge color | string | #ED615C |
height | Chart height | number | - |
line | Whether to show stroke | boolean | false |
animate | Whether to show animation | boolean | true |
xAxis | x-axis configuration | object | - |
yAxis | y-axis configuration | object | - |
data | data | array<{x, y}> | - |
| Property | Description | Type | Default |
|---|---|---|---|
target | Target ratio | number | - |
color | Chart color | string | #3B4150 |
strokeWidth | Height of progress bar | number | - |
percent | Progress ratio | number | - |
| Property | Description | Type | Default |
|---|---|---|---|
title | Chart title | ReactNode|string | - |
color | Chart color | string | #3B4150 |
padding | Internal chart spacing | array | 'auto' |
height | Chart height | number | - |
data | data | array<{x, y}> | - |
autoLabel | When the width is insufficient, the x-axis label is automatically hidden | boolean | true |
| Property | Description | Type | Default |
|---|---|---|---|
animate | Whether to show animation | boolean | true |
color | Chart color | string | rgba(24, 144, 255, 0.85) |
height | Chart height | number | - |
hasLegend | Whether to display legend | boolean | false |
padding | Internal chart spacing | array | 'auto' |
percent | Percentage | number | - |
tooltip | Whether to show tooltip | boolean | true |
valueFormat | Display value formatting function | function | - |
title | Chart title | ReactNode|string | - |
subTitle | Chart subtitle | ReactNode|string | - |
total | Total number in the center of the icon | string | function |
| Property | Description | Type | Default |
|---|---|---|---|
title | Chart title | ReactNode|string | - |
height | Chart height | number | - |
hasLegend | Whether to display legend | boolean | false |
padding | Internal chart spacing | array | 'auto' |
data | data | array<{name,label,value}> | - |
| Property | Description | Type | Default |
|---|---|---|---|
title | Chart title | ReactNode|string | - |
height | Chart height | number | - |
color | Chart color | string | #2F9CFF |
bgColor | Chart background color | string | #F0F2F5 |
percent | Progress ratio | number | - |
| Property | Description | Type | Default |
|---|---|---|---|
title | Chart title | ReactNode|string | - |
height | Chart height | number | - |
color | Chart color | string | #1890FF |
percent | Progress ratio | number | - |
| Property | Description | Type | Default |
|---|---|---|---|
data | data | Array<x, y1, y2> | - |
titleMap | Indicator alias | Object{y1:'Passenger Flow', y2:'Number of Payments'} | - |
height | Chart height | number | 400 |
| Property | Description | Type | Default |
|---|---|---|---|
label | title | ReactNode|string | - |
value | value | ReactNode|string | - |
| Property | Description | Type | Default |
|---|---|---|---|
data | A data source is a collection of objects. | array | - |
height | Set the height of the chart. | number | - |
width | Set the width of the chart. | number | - |
autoFit | The chart size is adaptive, and the width and height of the outer container will be adapted | boolean | false |
scale | Configure the scale of the chart. | object | - |
| Property | Description | Type | Default |
|---|---|---|---|
position | The coordinates of the turning point of the drawn graph. Example "x*y". | string | - |
shape | The method of mapping data values to the shape of the graph. Support the following usage. Example "box". | string/array | - |
size | Used to configure the width of the graphic. There are several usages: | string/array/number | - |
style | Configure the style of geometric figures. | object/number | - |
tooltip | Control the tooltip switch of the current Geometry geometry mark, the Geometry data will not be displayed in the tooltip content box | string/object/array | - |
| Property | Description | Type | Default |
|---|---|---|---|
showTitle | Whether to display the tooltip title. | boolean | - |
showMarkers | Whether to display the current data mark where the mouse is located. | boolean | |
itemTpl | The default template of each record. The class of each dom node must be included when customizing the template. The display content of the tooltip can be formatted. | string |