0

我不想在饼图中有演示数据(网络浏览器)。我想覆盖这个。但它不在乎。它不显示任何错误,但始终只显示 Web 浏览器数据。不是我的:“水星”、4900 “金星”、12100

public DowntimeChartView(DowntimeService service) {
    Configuration configurationDowntimeChart = downtimeChart.getConfiguration();
    DataSeries series = new DataSeries();
    series.add(new DataSeriesItem("Mercury", 4900));
    series.add(new DataSeriesItem("Venus", 12100));
    configurationDowntimeChart.setTitle("Verfügbar bzw. Stillstand  19-06-17_16-50");
    configurationDowntimeChart.setSeries(series);
    downtimeChart.drawChart();
}
4

1 回答 1

0

我删除了 META-INF/resources/frontend/layouts/view.html:16

<vaadin-chart-series title="Brands" values="[[&quot;Chrome&quot;,61.41],[&quot;Internet Explorer&quot;,11.84],[&quot;Firefox&quot;,10.85],[&quot;Edge&quot;,4.67],[&quot;Safari&quot;,4.18],[&quot;Sogou Explorer&quot;,1.64],[&quot;Opera&quot;,1.6],[&quot;QQ&quot;,1.2],[&quot;Other&quot;,2.61]]" content="downtime-chart-view"></vaadin-chart-series> downtime-chart-view 
于 2019-06-17T16:26:11.007 回答