Home > front end >  Vue v - charts
Vue v - charts

Time:02-09

 


<script>
Export the default {
Data () {
Enclosing chartsetting={
DataType: {
'proportion' : 'percent'
},
SeriesMap: {
'proportion: {
Min: 0,
Max: 1
}
}
}
Return: {
Chartdata: {
The columns: [' type ', 'value'],
Rows: [
{type: 'proportion, value: 0.5}
]
}
}
}
}
</script>

According to i.n umber transfer value is the percentage, assign a value to a value, each line brush a corresponding i.n umber percentage value of the dashboard,

CodePudding user response:

This can be solved, someone answer it?

CodePudding user response:

Or have any other solution, the percentage of each line according to the corresponding value to generate a dashboard

CodePudding user response:


Can someone to answer it for me? ,,,,,,,,,

CodePudding user response:


The basic code:
 
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/v-charts/lib/style.min.css" & gt;




<script SRC="https://cdn.jsdelivr.net/npm/vue/dist/vue.js" & gt; </script>
<script SRC="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js" & gt; </script>
<script SRC="https://cdn.jsdelivr.net/npm/v-charts/lib/index.min.js" & gt; </script>


 
Vue.com ponent (v - chart, {
The template: ` & lt; Div>



{{I}} & lt;/td>


`,
Data: the function () {
Enclosing chartSettings={
DataType: {
'proportion' : 'percent'
},
SeriesMap: {
'proportion: {
Min: 0,
Max: 1
}
}
};
Return {
ChartData (I) {
Return {
The columns: [' type ', 'value'],
Rows: [
{type: 'proportion, value: (I)}
]
}
},
Item: [0.1, 0.3, 0.5, 0.8, 0.55]
};
}
});
New Vue ({
El: '# app2'
});

CodePudding user response:

The
Hello World reference 4 floor, response:

The basic code:
 
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/v-charts/lib/style.min.css" & gt;




<script SRC="https://cdn.jsdelivr.net/npm/vue/dist/vue.js" & gt; </script>
<script SRC="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js" & gt; </script>
<script SRC="https://cdn.jsdelivr.net/npm/v-charts/lib/index.min.js" & gt; </script>


 
Vue.com ponent (v - chart, {
The template: ` & lt; Div>



{{I}} & lt;/td>


`,
Data: the function () {
Enclosing chartSettings={
DataType: {
'proportion' : 'percent'
},
SeriesMap: {
'proportion: {
Min: 0,
Max: 1
}
}
};
Return {
ChartData (I) {
Return {
The columns: [' type ', 'value'],
Rows: [
{type: 'proportion, value: (I)}
]
}
},
Item: [0.1, 0.3, 0.5, 0.8, 0.55]
};
}
});
New Vue ({
El: '# app2'
});

Thank you, settled, I here there is a problem, do not know to have time to answer, & lt; Table> Can in front of each line has a drop-down, click on the drop-down shows another form, can't, I watched the & lt; El - table> If I can, I'm just learning, don't know how to brush the dashboard to each row,

CodePudding user response:

reference 5 floor guttaoqibao reply:
thanks, settled, I here there is a problem, I do not know to have time to answer, & lt; Table> Can in front of each line has a drop-down, click on the drop-down shows another form, can't, I watched the & lt; El - table> If I can, I'm just learning, don't know how to brush the dashboard to each line,

This is not clear, I also just know VUE

CodePudding user response:

reference 5 floor guttaoqibao reply:
Quote: Hello World reference 4 floor, response:


The basic code:
 
& lt; Link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/v-charts/lib/style.min.css" & gt;




  • Related