| xqd
@@ -15,8 +15,11 @@ function initChart(canvas, width, height, dpr) {
|
|
|
devicePixelRatio: dpr // new
|
|
|
});
|
|
|
canvas.setChart(chart);
|
|
|
-
|
|
|
+ chart.on('click',function(params){
|
|
|
+ console.log(params)
|
|
|
+ })
|
|
|
option = {
|
|
|
+ color:["#5992fd"],
|
|
|
legend: {
|
|
|
data: []
|
|
|
},
|
| xqd
@@ -189,7 +192,8 @@ Page({
|
|
|
var chartIndex = this.data.chartIndex
|
|
|
if (chartIndex == 0) {
|
|
|
option.xAxis = [{
|
|
|
- type: 'value'
|
|
|
+ type: 'value',
|
|
|
+ show: false
|
|
|
}]
|
|
|
|
|
|
option.legend = {
|
| xqd
@@ -203,7 +207,11 @@ Page({
|
|
|
option.title = {
|
|
|
text: title,
|
|
|
left: 'center',
|
|
|
- bottom: 20
|
|
|
+ bottom: 10,
|
|
|
+ textStyle: {
|
|
|
+ fontSize: 14,
|
|
|
+ color:"#5992fd"
|
|
|
+ },
|
|
|
}
|
|
|
option.yAxis = [{
|
|
|
type: 'category',
|
| xqd
@@ -239,7 +247,8 @@ Page({
|
|
|
}
|
|
|
} else if (chartIndex == 1) {
|
|
|
option.xAxis = [{
|
|
|
- type: 'value'
|
|
|
+ type: 'value',
|
|
|
+ show:false
|
|
|
}]
|
|
|
|
|
|
option.legend = {
|
| xqd
@@ -253,7 +262,11 @@ Page({
|
|
|
option.title = {
|
|
|
text: title,
|
|
|
left: 'center',
|
|
|
- bottom: 20
|
|
|
+ bottom: 10,
|
|
|
+ textStyle: {
|
|
|
+ fontSize: 14,
|
|
|
+ color:"#5992fd"
|
|
|
+ },
|
|
|
}
|
|
|
option.yAxis = [{
|
|
|
type: 'category',
|
| xqd
@@ -290,7 +303,8 @@ Page({
|
|
|
// chart.resize({width: '80vw', height: '80vh'})
|
|
|
} else {
|
|
|
option.xAxis = [{
|
|
|
- type: 'value'
|
|
|
+ type: 'value',
|
|
|
+ show:false
|
|
|
}]
|
|
|
|
|
|
option.legend = {
|
| xqd
@@ -301,7 +315,11 @@ Page({
|
|
|
option.title = {
|
|
|
text: title,
|
|
|
left: 'center',
|
|
|
- bottom: 20
|
|
|
+ bottom: 10,
|
|
|
+ textStyle: {
|
|
|
+ fontSize: 14,
|
|
|
+ color:"#5992fd"
|
|
|
+ },
|
|
|
}
|
|
|
option.yAxis = [{
|
|
|
type: 'category',
|