在nvd3散点图中自定义无数据标签 [英] custom no data label in nvd3 scatter chart

查看:185
本文介绍了在nvd3散点图中自定义无数据标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试显示自定义消息,而不是显示无数据可用消息。我使用nvd3散点图/气泡图。我遇到了一个建议这里

I am trying to have custom message instead of the "No Data Available" message which is displayed. I am using nvd3 scatter / bubble chart. I came across a suggestion here

data2 = [ 
  { 
  "key" : "A key" , 
  "values" : [[]]
  }
];

但我想更改消息。我看了源代码scatter.js,但没有找到无数据可用消息。我需要修改另一个源文件吗?我该怎么办?

but I want to change the message. I looked at the source scatter.js but did not find "No Data Available" message. Do I need to modify another source file? How can I do so?

推荐答案

查看,似乎可以使用 .noData()

chart.noData("Nothing to see here.");

这篇关于在nvd3散点图中自定义无数据标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆