{
{/* 内容区域 */}
- {
- chartRef.current = e;
- }}
- option={option}
- onEvents={onEvents}
- style={{ height: "100%", width: "100%" }}
- opts={{ renderer: "canvas" }}
- />
+ {predictionResults && predictionResults.length > 0 ? (
+ {
+ chartRef.current = e;
+ }}
+ option={option}
+ onEvents={onEvents}
+ style={{ height: "100%", width: "100%" }}
+ opts={{ renderer: "canvas" }}
+ />
+ ) : (
+ renderEmpty()
+ )}