简体   繁体   English

android 或 SciChart 的 AnyChart 是否支持不升 x 轴?

[英]Does AnyChart for android or SciChart support not ascending x-axis?

I need to build an app that draws a line graph from data that is sent to the phone over bluetooth in real time.我需要构建一个应用程序,从通过蓝牙实时发送到手机的数据中绘制折线图。 Data that I get should draw a graph similar to this .我得到的数据应该绘制一个类似于this的图表。 I tried with MPandroid charts but it's not working because is not supported I checked and GraphView doesn't support unsorted x-axis line graphs either.我尝试使用 MPandroid 图表,但它不工作,因为不支持我检查并且 GraphView 也不支持未排序的 x 轴线图。 Does anybody know if SciChart or AnyCharts support?有人知道 SciChart 或 AnyCharts 是否支持吗?

Yes absolutely Scichart supports data not ascending in X.是的,Scchart 绝对支持 X 中不升序的数据。

If you append data to a SciChart Android DataSeries you will see the following warning:如果您将 append 数据写入 SciChart Android DataSeries,您将看到以下警告:

java.lang.UnsupportedOperationException: Data has been changed to a DataSeries which is unsorted in the X-Direction. java.lang.UnsupportedOperationException:数据已更改为在 X 方向上未排序的 DataSeries。 Unsorted data can have severe performance implications in SciChart.未排序的数据可能会对 SciChart 的性能产生严重影响。

This warning is intended to prevent you from accidentally appending data to a series that is unsorted (which results in poorer performance).此警告旨在防止您意外地将数据附加到未排序的系列中(这会导致性能下降)。 If you intended to do this, then simply set DataSeries.setAcceptsUnsortedData(true) .如果您打算这样做,那么只需设置DataSeries.setAcceptsUnsortedData(true) Now append away!现在 append 走了!

There are several axis types in SciChart. SciChart 中有几种轴类型。 In MPAndroidChart you only get a category axis (data is measured in X based on x-index).在 MPAndroidChart 中,您只能获得一个类别轴(数据基于 x-index 在 X 中测量)。 In SciChart you can get a category axis or a value axis (which measures data based on X-value).在 SciChart 中,您可以获得类别轴或值轴(根据 X 值测量数据)。

To read more about the different axis types in SciChart, please see this article: Axis Types in SciChart Android要了解有关 SciChart 中不同轴类型的更多信息,请参阅本文: SciChart Android 中的轴类型

Yes, the AnyChart Android library supports unsorted xScale and real-time update of the chart.是的,AnyChart Android 库支持未排序的 xScale 和图表的实时更新。 If you need any sample based on AnyChart, please, contact us support@anychart.com如果您需要任何基于 AnyChart 的样品,请联系我们 support@anychart.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM