我想展示一个圆点角色" \ u2022" 在自定义视图内的StaticLayout中, 怎么做?
app.controller('archive', function($scope, $http) {
var layout = { margin: { l: 40, r: 20, b: 35, t: 20, pad: 4 } }
$http.get("json.php?module=archive").then(function(response) {
$scope.sensors = response.data;
angular.forEach($scope.sensors, function(value, key) {
var data = [{ x: value.x.split(","), y: value.y.split(","), type: 'scatter', name: value.name }];
Plotly.newPlot("chart"+(key-1), data, layout, {displaylogo: false, showLink: false, autosize: false});
});
}, function(response) {
alert("Error: "+response);
});