Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 angularjs(highcharts-ng)的 highcharts 并动态获取系列数据,该系列数据数组可能为空,如果为空,我想在图形 div 中显示诸如“无可用数据”之类的消息。我怎样才能做到这一点??
只需在图表前使用 div ,仅当没有数据为空时才会出现;
<div ng-if="myData === null || (myData && myData.length === 0)"> <h3>No data available</h3> </div>