首页 \ 问答 \ Kendoui dataviz在折线图上添加数据点(Kendoui dataviz adding data points on line charts)

Kendoui dataviz在折线图上添加数据点(Kendoui dataviz adding data points on line charts)

是否可以在kendoUI折线图上添加新的和删除数据点而无需刷新图表? 数据将每5秒钟进入一次,并且最多可以在图表上显示720个数据点(图表将显示过去一小时的数据)。 如果图表上有720个数据点,则下一个数据应该附加在图表的末尾,同时删除图表上的第一个数据点。


Is it possible to add a new and remove data points on a kendoUI line chart without refreshing the chart? Data will be coming in every 5 seconds and can go upto a maximum of 720 data points on the chart (chart will be showing data for the past one hour). If 720 data points are available on the chart the next data coming in should be appended at the end of the chart while removing the first data point on the chart.


原文:https://stackoverflow.com/questions/13758245
更新时间:2020-01-12 22:58

最满意答案

是的,规范要求容器支持超类注入。

这取决于你的意思是“初始化”。 如果您自己创建MyService实例,则注入根本不起作用; MyService需要由容器创建(是servlet,CDI bean,EJB bean等)。 然后,容器显然必须做一些工作来创建一个代理对象注入到字段中,但它可能不会创建实际的bean实例。 对于无状态会话bean,在实际调用方法之前,可能无法从Bean池创建或分配实际的bean实例。 对于有状态会话bean,容器将在创建MyService时创建实例。


Yes, the specifications require containers to support superclass injection.

It depends what you mean by "initialize". If you're creating MyService instances yourself, then injection won't work at all; MyService needs to be created by the container (be a servlet, CDI bean, EJB bean, etc.). Then, the container obviously must do some work to create a proxy object to inject into the field, but it might not create the actual bean instance. For stateless session beans, the actual bean instance might not be created or allocated from a bean pool until a method is actually called. For stateful session beans, the container will create an instance when MyService is created.

相关问答

更多
  • 首先,在Configurator中, MySingleton singletonA和MySingleton singletonB是相同的。 这是因为@Singleton的唯一要点就是只有一个实例,无论注入多少次以及注入的位置(在同一个JVM中)。 Container会在您第一次注入实例之前创建实例,之后将共享相同的实例。 所以你也可以在AnotherEJB中再次注入(而不是只注入一次)它。 即使我们假设没有Singleton(例如Staless)的情况,使用@EJB进行注射也不会在其他地方产生可用于注射的新 ...
  • Web服务是一种系统集成技术。 如果您想要为公司内的其他应用程序或外部应用程序提供某些数据和/或逻辑,则可以使用Web服务。 存在不同类型的Web服务方法,REST Web服务是流行的Web服务类型之一。 因此,Web服务只是一个“表示”层。 您可能已经有一个现有的应用程序,您可以通过创建Web服务层向其他应用程序公开以进行交互。 在Web服务层后面进行实际工作的数据访问和业务逻辑可以用普通Java编写,也可以使用不同的框架来帮助完成各种任务。 如果您希望业务逻辑支持事务,访问控制,跨服务器分配以实现负载平 ...
  • 我会一直在回答自己的问题。 以下是我通过它的方式 以下xml文件用于具有文档类型,但现在必须具有名称空间: myApp.ear / META-INF / application.xml中
  • 当我们将EJB模块中的EAR文件打包出来时,客户端的查找方法略有改变。 我们总是可以在控制台中检查它应该引用什么路径进行注入。查找Servlet中用于EAR打包的EJB注入方法就是这样的。 @EJB(mappedName="YOUR_EAR_NAME/ManageStudentSessionBean/local") When we package an EAR file out of EJB modules then lookup method for the client changes slightl ...
  • 不是真的。 如果你可以进行CORBA调用,大多数容器都支持CORBA作为与远程EJB通信的协议,但我不推荐它。 您可以更好地将EJB会话Bean调用公开为SOAP Web服务,或者简单地使用Servlet对其进行外观并将其作为临时Web服务进行调用。 现在,如果您在Java EE服务器(我相信Resin可以运行PHP)中运行PHP,那么您可以调用可以调用EJB方法的Java调用。 但是,坦率地说,假设您被允许编写它们,Web服务或临时Web外观可能是您最好的,也是最快捷的成功途径。 Not really. ...
  • 好吧,我想通了。 我忘记了websphere特定的部署描述符,现在看起来像这样:
  • 是的,规范要求容器支持超类注入。 这取决于你的意思是“初始化”。 如果您自己创建MyService实例,则注入根本不起作用; MyService需要由容器创建(是servlet,CDI bean,EJB bean等)。 然后,容器显然必须做一些工作来创建一个代理对象注入到字段中,但它可能不会创建实际的bean实例。 对于无状态会话bean,在实际调用方法之前,可能无法从Bean池创建或分配实际的bean实例。 对于有状态会话bean,容器将在创建MyService时创建实例。 Yes, the specif ...
  • 我也希望您将MVC模型用于您的应用程序。 在这种情况下,不需要从jsp调用会话bean,您可以从servlet本身调用它。 查看此链接以从servlet调用EJB。 点击 I could also prefer you to use the MVC model for your application. In that case there is no need to call a session bean from the jsp, you can call it from the servlets it ...
  • 使用@QueryParam注释。 这样你就不需要自己动摇request.getParameter() 。 Java代码 @GET @Produces("text/html") public String getXml(@QueryParam("roy") String roy, @QueryParam("someInt") int someInt, @QueryParam("orderBy") List o ...
  • 这些类型的ejbs的使用通常在服务层中作为服务类。 EJB3无状态bean和有状态bean实际上是POJO(带有一些注释),它们与普通类没有任何大的区别。 但就使用而言,他们有一些在普通课程中找不到的能力,例如: 它们可以被远程调用(例如RMI协议)。 他们可以使用应用程序服务器上下文资源,如DB连接和事务 无状态或有状态: - 如果一个任务或进程可以在单个步骤中完成(通过单个方法调用)无状态是正确的选项,如身份验证过程 - 如果任务需要一系列方法调用(多于一个),并且您需要保留以前的结果以便在下次调用时使 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)