android在StaticLayout中显示点字符

时间:2017-02-10 10:48:20

标签: android ascii

我想展示一个圆点角色" \ 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);
});

0 个答案:

没有答案