|
@@ -29,8 +29,8 @@ function Usertrend(prop) {
|
|
|
height,
|
|
|
width,
|
|
|
padding: [
|
|
|
- 10,
|
|
|
- 40,
|
|
|
+ 20,
|
|
|
+ 60,
|
|
|
30,
|
|
|
70,
|
|
|
]
|
|
@@ -91,7 +91,20 @@ function Usertrend(prop) {
|
|
|
grid: null
|
|
|
});
|
|
|
chart.tooltip(false);
|
|
|
- chart.line().shape('smooth').color('#3ae8ef').position('Data*sales');
|
|
|
+ chart.line().shape('smooth').color('#3ae8ef').position('Data*sales').label('sales', val => {
|
|
|
+ return {
|
|
|
+ content: utils.formatNum(val, 0) + '次',
|
|
|
+ offsetX: 20,
|
|
|
+ style: {
|
|
|
+ fill: "#ffffff",
|
|
|
+ },
|
|
|
+ transform: [
|
|
|
+ {
|
|
|
+ type: 'overlapHide',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ }
|
|
|
+ });
|
|
|
chart.area().shape('smooth').color('l(90) 0:#3ae8ef 1:rgba(0,0,0,0)').position('Data*sales');
|
|
|
chart.render();
|
|
|
}
|