(cherry picked from commit 2ec4784190)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
co-authored by
Ryan McKinley
parent
39c5f1705e
commit
fed65b983a
@@ -10,7 +10,6 @@ Object {
|
|||||||
"fillOpacity": 50,
|
"fillOpacity": 50,
|
||||||
"lineInterpolation": "stepAfter",
|
"lineInterpolation": "stepAfter",
|
||||||
"lineWidth": 5,
|
"lineWidth": 5,
|
||||||
"pointSize": 6,
|
|
||||||
"showPoints": "never",
|
"showPoints": "never",
|
||||||
"spanNulls": true,
|
"spanNulls": true,
|
||||||
},
|
},
|
||||||
@@ -93,7 +92,6 @@ Object {
|
|||||||
"gradientMode": "opacity",
|
"gradientMode": "opacity",
|
||||||
"lineInterpolation": "stepAfter",
|
"lineInterpolation": "stepAfter",
|
||||||
"lineWidth": 1,
|
"lineWidth": 1,
|
||||||
"pointSize": 6,
|
|
||||||
"showPoints": "never",
|
"showPoints": "never",
|
||||||
"spanNulls": true,
|
"spanNulls": true,
|
||||||
},
|
},
|
||||||
@@ -133,7 +131,6 @@ Object {
|
|||||||
"fillOpacity": 50,
|
"fillOpacity": 50,
|
||||||
"lineInterpolation": "stepAfter",
|
"lineInterpolation": "stepAfter",
|
||||||
"lineWidth": 5,
|
"lineWidth": 5,
|
||||||
"pointSize": 6,
|
|
||||||
"showPoints": "never",
|
"showPoints": "never",
|
||||||
"spanNulls": true,
|
"spanNulls": true,
|
||||||
},
|
},
|
||||||
@@ -189,7 +186,6 @@ Object {
|
|||||||
"fill": "dash",
|
"fill": "dash",
|
||||||
},
|
},
|
||||||
"lineWidth": 1,
|
"lineWidth": 1,
|
||||||
"pointSize": 6,
|
|
||||||
"showPoints": "never",
|
"showPoints": "never",
|
||||||
"spanNulls": true,
|
"spanNulls": true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -231,6 +231,10 @@ export function flotToGraphOptions(angular: any): { fieldConfig: FieldConfigSour
|
|||||||
|
|
||||||
if (angular.points) {
|
if (angular.points) {
|
||||||
graph.showPoints = PointVisibility.Always;
|
graph.showPoints = PointVisibility.Always;
|
||||||
|
|
||||||
|
if (isNumber(angular.pointradius)) {
|
||||||
|
graph.pointSize = 2 + angular.pointradius * 2;
|
||||||
|
}
|
||||||
} else if (graph.drawStyle !== DrawStyle.Points) {
|
} else if (graph.drawStyle !== DrawStyle.Points) {
|
||||||
graph.showPoints = PointVisibility.Never;
|
graph.showPoints = PointVisibility.Never;
|
||||||
}
|
}
|
||||||
@@ -240,10 +244,6 @@ export function flotToGraphOptions(angular: any): { fieldConfig: FieldConfigSour
|
|||||||
graph.lineStyle = dash;
|
graph.lineStyle = dash;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNumber(angular.pointradius)) {
|
|
||||||
graph.pointSize = 2 + angular.pointradius * 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasFillBelowTo) {
|
if (hasFillBelowTo) {
|
||||||
graph.fillOpacity = 35; // bands are hardcoded in flot
|
graph.fillOpacity = 35; // bands are hardcoded in flot
|
||||||
} else if (isNumber(angular.fill)) {
|
} else if (isNumber(angular.fill)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user